Sha256: 11ab8b15a2b3a2b51732b102d9fde6c553344e5ab1253a860f70fe390b2c854b

Contents?: true

Size: 588 Bytes

Versions: 26

Compression:

Stored size: 588 Bytes

Contents

module Recurly
  class Usage < Resource
    # @return [MeasuredUnit]
    belongs_to :measured_unit

    define_attribute_methods %w(
      id
      usage_type
      unit_amount_in_cents
      usage_percentage
      amount
      amount_decimal
      merchant_tag
      usage_timestamp
      recording_timestamp
      billed_at
      created_at
      updated_at
      subscription_id
      add_on_code
      measured_unit_id
      modified_at
    )

    # Usages are only writeable and readable through {SubscriptionAddOns} instances.
    embedded!
    private_class_method :find
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
recurly-2.20.3 lib/recurly/usage.rb
recurly-2.20.2 lib/recurly/usage.rb
recurly-2.20.1 lib/recurly/usage.rb
recurly-2.20.0 lib/recurly/usage.rb
recurly-2.19.13 lib/recurly/usage.rb
recurly-2.19.12 lib/recurly/usage.rb
recurly-2.19.11 lib/recurly/usage.rb
recurly-2.19.10 lib/recurly/usage.rb
recurly-2.19.9 lib/recurly/usage.rb
recurly-2.19.8 lib/recurly/usage.rb
recurly-2.19.7 lib/recurly/usage.rb
recurly-2.19.6 lib/recurly/usage.rb
recurly-2.19.5 lib/recurly/usage.rb
recurly-2.19.4 lib/recurly/usage.rb
recurly-2.19.3 lib/recurly/usage.rb
recurly-2.19.2 lib/recurly/usage.rb
recurly-2.19.1 lib/recurly/usage.rb
recurly-2.19.0 lib/recurly/usage.rb
recurly-2.18.34 lib/recurly/usage.rb
recurly-2.18.33 lib/recurly/usage.rb