Class: Hws::Connectors::Dto::VirtualAccountResponse
- Inherits:
-
Response
- Object
- Hws::Connectors
- Response
- Hws::Connectors::Dto::VirtualAccountResponse
- Defined in:
- lib/hws-connectors/dto/virtual_account/virtual_account_response.rb
Constant Summary
Constants inherited from Hws::Connectors
Instance Attribute Summary collapse
-
#balance ⇒ Object
Returns the value of attribute balance.
-
#beneficiary ⇒ Object
Returns the value of attribute beneficiary.
-
#reference_number ⇒ Object
Returns the value of attribute reference_number.
-
#remitters ⇒ Object
Returns the value of attribute remitters.
-
#status ⇒ Object
Returns the value of attribute status.
Attributes inherited from Response
Instance Method Summary collapse
-
#initialize(reference_number:, beneficiary:, remitters: [], status: nil, balance: nil, message: nil, meta: {}) ⇒ VirtualAccountResponse
constructor
A new instance of VirtualAccountResponse.
Methods inherited from Hws::Connectors
Methods included from Helper
Constructor Details
#initialize(reference_number:, beneficiary:, remitters: [], status: nil, balance: nil, message: nil, meta: {}) ⇒ VirtualAccountResponse
Returns a new instance of VirtualAccountResponse.
4 5 6 7 8 9 10 11 |
# File 'lib/hws-connectors/dto/virtual_account/virtual_account_response.rb', line 4 def initialize(reference_number:, beneficiary:, remitters: [], status: nil, balance: nil, message: nil, meta: {}) @reference_number = reference_number @beneficiary = beneficiary @remitters = remitters @status = status @balance = balance super(message: , meta: ) end |
Instance Attribute Details
#balance ⇒ Object
Returns the value of attribute balance.
2 3 4 |
# File 'lib/hws-connectors/dto/virtual_account/virtual_account_response.rb', line 2 def balance @balance end |
#beneficiary ⇒ Object
Returns the value of attribute beneficiary.
2 3 4 |
# File 'lib/hws-connectors/dto/virtual_account/virtual_account_response.rb', line 2 def beneficiary @beneficiary end |
#reference_number ⇒ Object
Returns the value of attribute reference_number.
2 3 4 |
# File 'lib/hws-connectors/dto/virtual_account/virtual_account_response.rb', line 2 def reference_number @reference_number end |
#remitters ⇒ Object
Returns the value of attribute remitters.
2 3 4 |
# File 'lib/hws-connectors/dto/virtual_account/virtual_account_response.rb', line 2 def remitters @remitters end |
#status ⇒ Object
Returns the value of attribute status.
2 3 4 |
# File 'lib/hws-connectors/dto/virtual_account/virtual_account_response.rb', line 2 def status @status end |