Sha256: a3d1e1c5f08aabd3f7360a281da47fd889aa129a5b874c410d69834fa0c39790

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

module Aptible
  module Billing
    class Meter < Resource
      field :id
      field :size
      field :organization_id
      field :created_at, type: Time
      field :updated_at, type: Time
      field :started_at, type: Time
      field :ended_at, type: Time
      belongs_to :billing_detail

      def organization
        Aptible::Auth::Organization.find(
            links['organization_id'],
            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.3 lib/aptible/billing/meter.rb