Class: Datacentred::Model::Usage
- Defined in:
- lib/datacentred/model/usage.rb
Overview
Usage data for a given month/year.
Data is updated every few hours for the current month.
Instance Attribute Summary collapse
-
#last_updated_at ⇒ Time
The current value of last_updated_at.
-
#projects ⇒ [Hash]
The current value of projects.
Class Method Summary collapse
-
.find(year, month) ⇒ Usage
Retrieve account usage data for a given year/month.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Datacentred::Model::Base
Instance Attribute Details
#last_updated_at ⇒ Time
Returns the current value of last_updated_at
9 10 11 |
# File 'lib/datacentred/model/usage.rb', line 9 def last_updated_at @last_updated_at end |
#projects ⇒ [Hash]
Returns the current value of projects
9 10 11 |
# File 'lib/datacentred/model/usage.rb', line 9 def projects @projects end |