class Changeset_Query
Changeset Query¶ ↑
Returns a bucket of changesets
Public Class Methods
earliest_changeset_date()
click to toggle source
Get the date of the earliest changeset in the analysis window
# File models/Query.rb, line 100 def self.earliest_changeset_date DatabaseConnection.database['changesets'].find( selector={}, opts= {:sort => {'created_at' => :asc} } ).limit(1).first['created_at'] end
latest_changeset_date()
click to toggle source
Get the date of the latest changeset in the analysis window
# File models/Query.rb, line 107 def self.latest_changeset_date DatabaseConnection.database['changesets'].find( selector={}, opts= {:sort => {'closed_at' => :desc} } ).limit(1).first['closed_at'] end
Public Instance Methods
run(args={})
click to toggle source
Calls superclass method
Query#run
# File models/Query.rb, line 95 def run(args={}) super args.update( {collection: 'changesets', type: Changeset} ) end