Class: Modulr::Resources::Payments::Details::Incoming::General

Inherits:
Base
  • Object
show all
Defined in:
lib/modulr/resources/payments/details/incoming/general.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from Base

map

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

#destinationObject (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

#payeeObject (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

#payerObject (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