Class: VC::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.



31
32
33
# File 'lib/models/report.rb', line 31

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

Instance Attribute Details

#account_idObject

Returns the value of attribute account_id.



29
30
31
# File 'lib/models/report.rb', line 29

def 
  @account_id
end

Instance Method Details

#resourceObject



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

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