Class: ActivePayment::Models::Payee

Inherits:
Object
  • Object
show all
Includes:
PaypalPayee
Defined in:
lib/active_payment/models/payee.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PaypalPayee

#to_paypal_hash

Constructor Details

#initialize(id:, paypal_identifier:, primary: false) ⇒ Payee

Returns a new instance of Payee.



8
9
10
11
12
# File 'lib/active_payment/models/payee.rb', line 8

def initialize(id:, paypal_identifier:, primary: false)
  @id = id
  @paypal_identifier = paypal_identifier
  @primary = primary
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/active_payment/models/payee.rb', line 6

def id
  @id
end

#paypal_identifierObject

Returns the value of attribute paypal_identifier.



6
7
8
# File 'lib/active_payment/models/payee.rb', line 6

def paypal_identifier
  @paypal_identifier
end

#primaryObject

Returns the value of attribute primary.



6
7
8
# File 'lib/active_payment/models/payee.rb', line 6

def primary
  @primary
end