Class: VC::UsageReport
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Returns the value of attribute account_id.
Attributes inherited from Report
Instance Method Summary collapse
-
#initialize(account_id, from, to) ⇒ UsageReport
constructor
A new instance of UsageReport.
- #resource ⇒ Object
Methods inherited from Report
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(account_id, from, to) @account_id, @from, @to = account_id, from, to end |
Instance Attribute Details
#account_id ⇒ Object
Returns the value of attribute account_id.
29 30 31 |
# File 'lib/models/report.rb', line 29 def account_id @account_id end |
Instance Method Details
#resource ⇒ Object
35 36 37 |
# File 'lib/models/report.rb', line 35 def resource "/accounts/#{@account_id}/usage_reports" end |