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