Class: Unit::Types::WireCounterparty
- Inherits:
-
Object
- Object
- Unit::Types::WireCounterparty
- Defined in:
- lib/unit/types/wire_counterparty.rb
Instance Attribute Summary collapse
-
#account_number ⇒ Object
readonly
Returns the value of attribute account_number.
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#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, address) ⇒ WireCounterparty
constructor
A new instance of WireCounterparty.
- #represent ⇒ Object
Constructor Details
#initialize(name, account_number, routing_number, address) ⇒ WireCounterparty
Returns a new instance of WireCounterparty.
13 14 15 16 17 18 |
# File 'lib/unit/types/wire_counterparty.rb', line 13 def initialize(name, account_number, routing_number, address) @name = name @account_number = account_number @routing_number = routing_number @address = address end |
Instance Attribute Details
#account_number ⇒ Object (readonly)
Returns the value of attribute account_number.
7 8 9 |
# File 'lib/unit/types/wire_counterparty.rb', line 7 def account_number @account_number end |
#address ⇒ Object (readonly)
Returns the value of attribute address.
7 8 9 |
# File 'lib/unit/types/wire_counterparty.rb', line 7 def address @address end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/unit/types/wire_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/wire_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/wire_counterparty.rb', line 20 def represent params = { name: name, accountNumber: account_number, routingNumber: routing_number, address: address&.represent } params.compact end |