Class: Shushu::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.
35 36 37 |
# File 'lib/models/report.rb', line 35 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.
33 34 35 |
# File 'lib/models/report.rb', line 33 def account_id @account_id end |
Instance Method Details
#resource ⇒ Object
39 40 41 |
# File 'lib/models/report.rb', line 39 def resource "/accounts/#{@account_id}/usage_reports" end |