Class: Unit::Types::Counterparty

Inherits:
Object
  • Object
show all
Defined in:
lib/unit/types/counterparty.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, account_number, routing_number, account_type) ⇒ Counterparty

Returns a new instance of Counterparty.

Parameters:

  • name (String)
  • account_number (String)
  • routing_number (String)
  • account_type (String)


13
14
15
16
17
18
# File 'lib/unit/types/counterparty.rb', line 13

def initialize(name, , routing_number, )
  @name = name
  @account_number = 
  @routing_number = routing_number
  @account_type = 
end

Instance Attribute Details

#account_numberObject (readonly)

Returns the value of attribute account_number.



7
8
9
# File 'lib/unit/types/counterparty.rb', line 7

def 
  @account_number
end

#account_typeObject (readonly)

Returns the value of attribute account_type.



7
8
9
# File 'lib/unit/types/counterparty.rb', line 7

def 
  @account_type
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/unit/types/counterparty.rb', line 7

def name
  @name
end

#routing_numberObject (readonly)

Returns the value of attribute routing_number.



7
8
9
# File 'lib/unit/types/counterparty.rb', line 7

def routing_number
  @routing_number
end

Instance Method Details

#representObject



20
21
22
23
24
25
26
27
28
# File 'lib/unit/types/counterparty.rb', line 20

def represent
  params = {
    name: name,
    accountNumber: ,
    routingNumber: routing_number,
    accountType: 
  }
  params.compact
end