Sha256: 65b3e0565fd6a9db4b9ab8662bc97136fe8d606f900118b07d7439270144eb7e

Contents?: true

Size: 568 Bytes

Versions: 1

Compression:

Stored size: 568 Bytes

Contents

module Aptible
  module Billing
    class Meter < Resource
      field :id
      field :size
      field :type, type: String
      field :description, type: String
      field :account_id, type: String
      field :created_at, type: Time
      field :updated_at, type: Time
      field :started_at, type: Time
      field :ended_at, type: Time

      def billing_detail
        Aptible::Billing::BillingDetail.find_by_url(
          links['billing_detail'].href,
          token: token,
          headers: headers)
      rescue
        nil
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aptible-billing-0.1.5 lib/aptible/billing/meter.rb