Class: Hws::Connectors::Response

Inherits:
Hws::Connectors show all
Defined in:
lib/hws-connectors/dto/common/response.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(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 = message
  @meta = meta.to_h.transform_keys { |key| key.to_sym }
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



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

def message
  @message
end

#metaObject

Returns the value of attribute meta.



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

def meta
  @meta
end