Class: Roundhouse::Stats::History

Inherits:
Object
  • Object
show all
Defined in:
lib/roundhouse/api.rb

Instance Method Summary collapse

Constructor Details

#initialize(days_previous, start_date = nil) ⇒ History

Returns a new instance of History.



176
177
178
179
# File 'lib/roundhouse/api.rb', line 176

def initialize(days_previous, start_date = nil)
  @days_previous = days_previous
  @start_date = start_date || Time.now.utc.to_date
end

Instance Method Details

#failedObject



185
186
187
# File 'lib/roundhouse/api.rb', line 185

def failed
  date_stat_hash("failed")
end

#processedObject



181
182
183
# File 'lib/roundhouse/api.rb', line 181

def processed
  date_stat_hash("processed")
end