Class: Hws::Connectors::Response
- Inherits:
-
Hws::Connectors
- Object
- Hws::Connectors
- Hws::Connectors::Response
- Defined in:
- lib/hws-connectors/dto/common/response.rb
Direct Known Subclasses
Dto::CreditVirtualAccountResponse, Dto::PayoutResponse, Dto::VirtualAccountResponse
Constant Summary
Constants inherited from Hws::Connectors
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#meta ⇒ Object
Returns the value of attribute meta.
Instance Method Summary collapse
-
#initialize(message: nil, meta: {}) ⇒ Response
constructor
A new instance of Response.
Methods inherited from Hws::Connectors
Methods included from Helper
Constructor Details
#initialize(message: nil, meta: {}) ⇒ Response
Returns a new instance of Response.
4 5 6 7 |
# File 'lib/hws-connectors/dto/common/response.rb', line 4 def initialize(message: nil, meta: {}) @message = @meta = .to_h.transform_keys { |key| key.to_sym } end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
2 3 4 |
# File 'lib/hws-connectors/dto/common/response.rb', line 2 def @message end |
#meta ⇒ Object
Returns the value of attribute meta.
2 3 4 |
# File 'lib/hws-connectors/dto/common/response.rb', line 2 def @meta end |