Sha256: ebfa3f6bee1004e496430de3248133161355e89a9aa72de8166cae0bac68bd1d

Contents?: true

Size: 713 Bytes

Versions: 1

Compression:

Stored size: 713 Bytes

Contents

module Datacentred
  module Model
    # 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
    class Usage < Base
      # 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.
      def self.find(year, month)
        new Request::Usage.show year, month
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datacentred-1.1.1 lib/datacentred/model/usage.rb