Class: CommandTower::Clients::DecodedResponse
- Inherits:
-
Object
- Object
- CommandTower::Clients::DecodedResponse
- Defined in:
- app/services/command_tower/clients/decoded_response.rb
Overview
Internal handoff from provider decode_response → EndpointBase resource deserializer. Not a public product wrapper; not placed on ClientResult#output.
Instance Attribute Summary collapse
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#provider_metadata ⇒ Object
readonly
Returns the value of attribute provider_metadata.
Instance Method Summary collapse
-
#initialize(payload:, provider_metadata: {}) ⇒ DecodedResponse
constructor
A new instance of DecodedResponse.
Constructor Details
#initialize(payload:, provider_metadata: {}) ⇒ DecodedResponse
Returns a new instance of DecodedResponse.
10 11 12 13 |
# File 'app/services/command_tower/clients/decoded_response.rb', line 10 def initialize(payload:, provider_metadata: {}) @payload = payload @provider_metadata = end |
Instance Attribute Details
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
8 9 10 |
# File 'app/services/command_tower/clients/decoded_response.rb', line 8 def payload @payload end |
#provider_metadata ⇒ Object (readonly)
Returns the value of attribute provider_metadata.
8 9 10 |
# File 'app/services/command_tower/clients/decoded_response.rb', line 8 def @provider_metadata end |