Class: Hws::Connectors::Request

Inherits:
Hws::Connectors show all
Defined in:
lib/hws-connectors/dto/common/request.rb

Constant Summary

Constants inherited from Hws::Connectors

VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Hws::Connectors

configure, logging?

Methods included from Helper

included

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 = meta.to_h.transform_keys { |key| key.to_sym }
end

Instance Attribute Details

#metaObject

Returns the value of attribute meta.



2
3
4
# File 'lib/hws-connectors/dto/common/request.rb', line 2

def meta
  @meta
end

#reference_numberObject

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