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.18.32 lib/recurly/account_acquisition.rb
recurly-2.18.31 lib/recurly/account_acquisition.rb
recurly-2.18.30 lib/recurly/account_acquisition.rb
recurly-2.18.29 lib/recurly/account_acquisition.rb
recurly-2.18.28 lib/recurly/account_acquisition.rb
recurly-2.18.27 lib/recurly/account_acquisition.rb
recurly-2.18.26 lib/recurly/account_acquisition.rb
recurly-2.18.25 lib/recurly/account_acquisition.rb
recurly-2.18.24 lib/recurly/account_acquisition.rb
recurly-2.18.23 lib/recurly/account_acquisition.rb
recurly-2.18.22 lib/recurly/account_acquisition.rb
recurly-2.18.21 lib/recurly/account_acquisition.rb
recurly-2.18.20 lib/recurly/account_acquisition.rb
recurly-2.18.19 lib/recurly/account_acquisition.rb
recurly-2.18.18 lib/recurly/account_acquisition.rb
recurly-2.18.17 lib/recurly/account_acquisition.rb
recurly-2.18.16 lib/recurly/account_acquisition.rb
recurly-2.18.15 lib/recurly/account_acquisition.rb
recurly-2.18.14 lib/recurly/account_acquisition.rb
recurly-2.18.13 lib/recurly/account_acquisition.rb