Class: Modulr::Resources::Payments::Details::Incoming::General
- Defined in:
- lib/modulr/resources/payments/details/incoming/general.rb
Instance Attribute Summary collapse
-
#destination ⇒ Object
readonly
Returns the value of attribute destination.
-
#payee ⇒ Object
readonly
Returns the value of attribute payee.
-
#payer ⇒ Object
readonly
Returns the value of attribute payer.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(response, attributes = {}) ⇒ General
constructor
A new instance of General.
Methods inherited from Base
Constructor Details
#initialize(response, attributes = {}) ⇒ General
Returns a new instance of General.
30 31 32 33 34 35 36 |
# File 'lib/modulr/resources/payments/details/incoming/general.rb', line 30 def initialize(response, attributes = {}) super(response, attributes) @payer = Counterparty.new(nil, attributes[:payer]) @payee = Counterparty.new(nil, attributes[:payee]) @destination = parse_destination(attributes) end |
Instance Attribute Details
#destination ⇒ Object (readonly)
Returns the value of attribute destination.
9 10 11 |
# File 'lib/modulr/resources/payments/details/incoming/general.rb', line 9 def destination @destination end |
#payee ⇒ Object (readonly)
Returns the value of attribute payee.
9 10 11 |
# File 'lib/modulr/resources/payments/details/incoming/general.rb', line 9 def payee @payee end |
#payer ⇒ Object (readonly)
Returns the value of attribute payer.
9 10 11 |
# File 'lib/modulr/resources/payments/details/incoming/general.rb', line 9 def payer @payer end |