Class: Unit::Types::Counterparty
- Inherits:
-
Object
- Object
- Unit::Types::Counterparty
- Defined in:
- lib/unit/types/counterparty.rb
Instance Attribute Summary collapse
-
#account_number ⇒ Object
readonly
Returns the value of attribute account_number.
-
#account_type ⇒ Object
readonly
Returns the value of attribute account_type.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#routing_number ⇒ Object
readonly
Returns the value of attribute routing_number.
Instance Method Summary collapse
-
#initialize(name, account_number, routing_number, account_type) ⇒ Counterparty
constructor
A new instance of Counterparty.
- #represent ⇒ Object
Constructor Details
#initialize(name, account_number, routing_number, account_type) ⇒ Counterparty
Returns a new instance of Counterparty.
13 14 15 16 17 18 |
# File 'lib/unit/types/counterparty.rb', line 13 def initialize(name, account_number, routing_number, account_type) @name = name @account_number = account_number @routing_number = routing_number @account_type = account_type end |
Instance Attribute Details
#account_number ⇒ Object (readonly)
Returns the value of attribute account_number.
7 8 9 |
# File 'lib/unit/types/counterparty.rb', line 7 def account_number @account_number end |
#account_type ⇒ Object (readonly)
Returns the value of attribute account_type.
7 8 9 |
# File 'lib/unit/types/counterparty.rb', line 7 def account_type @account_type end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/unit/types/counterparty.rb', line 7 def name @name end |
#routing_number ⇒ Object (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
#represent ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/unit/types/counterparty.rb', line 20 def represent params = { name: name, accountNumber: account_number, routingNumber: routing_number, accountType: account_type } params.compact end |