Class: VertexClient::Payload::Base
- Inherits:
-
Object
- Object
- VertexClient::Payload::Base
- Defined in:
- lib/vertex_client/payloads/base.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(params) ⇒ Base
constructor
A new instance of Base.
- #transform ⇒ Object
Constructor Details
#initialize(params) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/vertex_client/payloads/base.rb', line 8 def initialize(params) @params = params.with_indifferent_access validate! end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
6 7 8 |
# File 'lib/vertex_client/payloads/base.rb', line 6 def params @params end |
Instance Method Details
#transform ⇒ Object
13 14 15 16 17 |
# File 'lib/vertex_client/payloads/base.rb', line 13 def transform { request_key => body } end |