Sha256: bfe25b0bf471ea4cfc08d86f8d1c4fc9874fae1b6a39603f0292e08ed9b45361

Contents?: true

Size: 558 Bytes

Versions: 51

Compression:

Stored size: 558 Bytes

Contents

module Recurly
  # Recurly Documentation: https://dev.recurly.com/docs/create-account-acquisition
  class AccountAcquisition < Resource
    # @return [Account]
    belongs_to :account

    define_attribute_methods %w(
      cost_in_cents
      currency
      channel
      subchannel
      campaign
    )

    def self.member_name
      "acquisition"
    end

    def self.xml_root_key
      "account_acquisition"
    end

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

Version data entries

51 entries across 51 versions & 1 rubygems

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