Class: Modulr::Resources::Payments::Counterparty

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

Instance Attribute Summary collapse

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from Base

map

Constructor Details

#initialize(response, attributes = {}) ⇒ Counterparty

Returns a new instance of Counterparty.



12
13
14
15
16
# File 'lib/modulr/resources/payments/counterparty.rb', line 12

def initialize(response, attributes = {})
  super(response, attributes)

  @identifier = Accounts::Identifier.new(nil, attributes[:identifier])
end

Instance Attribute Details

#identifierObject (readonly)

Returns the value of attribute identifier.



7
8
9
# File 'lib/modulr/resources/payments/counterparty.rb', line 7

def identifier
  @identifier
end