Class: Shushu::UsageReport

Inherits:
Report
  • Object
show all
Defined in:
lib/models/report.rb

Instance Attribute Summary collapse

Attributes inherited from Report

#billable_units, #from, #to

Instance Method Summary collapse

Methods inherited from Report

#fetch, #report, #total

Constructor Details

#initialize(account_id, from, to) ⇒ UsageReport

Returns a new instance of UsageReport.



35
36
37
# File 'lib/models/report.rb', line 35

def initialize(, from, to)
  @account_id, @from, @to = , from, to
end

Instance Attribute Details

#account_idObject

Returns the value of attribute account_id.



33
34
35
# File 'lib/models/report.rb', line 33

def 
  @account_id
end

Instance Method Details

#resourceObject



39
40
41
# File 'lib/models/report.rb', line 39

def resource
  "/accounts/#{@account_id}/usage_reports"
end