class Datacentred::Model::Usage

Usage data for a given month/year.

Data is updated every few hours for the current month.

@attr [Time] last_updated_at @attr [[Hash]] projects

Public Class Methods

find(year, month) click to toggle source

Retrieve account usage data for a given year/month.

@param [Integer] year The year. @param [Integer] month The month. @raise [Errors::NotFound] Raised if no usage data found for given year/month pair. @raise [Errors::Unauthorized] Raised if credentials aren't valid. @return [Usage] Usage for given year/month pair.

# File lib/datacentred/model/usage.rb, line 17
def self.find(year, month)
  new Request::Usage.show year, month
end