Class: Modulr::Resources::Payments::Details::Outgoing::General

Inherits:
Base
  • Object
show all
Defined in:
lib/modulr/resources/payments/details/outgoing/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.



16
17
18
19
# File 'lib/modulr/resources/payments/details/outgoing/general.rb', line 16

def initialize(response, attributes = {})
  super(response, attributes)
  @destination = Destination.new(nil, attributes[:destination])
end

Instance Attribute Details

#destinationObject (readonly)

Returns the value of attribute destination.



9
10
11
# File 'lib/modulr/resources/payments/details/outgoing/general.rb', line 9

def destination
  @destination
end