Sha256: c49888004404741b51c64c03812c408e59696319e275313fdbee8cf18434c3a7

Contents?: true

Size: 612 Bytes

Versions: 1

Compression:

Stored size: 612 Bytes

Contents

module Recurly
  class AddOn < Resource
    # @return [Plan]
    belongs_to :plan

    define_attribute_methods %w(
      add_on_code
      name
      accounting_code
      default_quantity
      unit_amount_in_cents
      display_quantity_on_hosted_page
      tax_code
      add_on_type
      measured_unit_id
      optional
      usage_type
      usage_percentage
      revenue_schedule_type
      created_at
    )
    alias to_param add_on_code
    alias quantity default_quantity

    # Add-ons are only writeable and readable through {Plan} instances.
    embedded!
    private_class_method :find
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
recurly-2.7.0 lib/recurly/add_on.rb