Class: Imperium::TransactionResponse
- Defined in:
- lib/imperium/transaction_response.rb
Overview
A Response is a decorator around the HTTP::Message object returned when a transaction is made.
It exposes, through a convenient API, headers common to all interactions with the Consul HTTP API
Instance Method Summary collapse
-
#errors ⇒ Object
Add Errors to the response coerced body.
-
#results ⇒ Object
Add Results as a KVPair to the response coerced body.
Methods inherited from Response
#coerced_body, #each, #index, #initialize, #known_leader?, #last_contact, #not_found?, #translate_addresses?
Constructor Details
This class inherits a constructor from Imperium::Response
Instance Method Details
#errors ⇒ Object
Add Errors to the response coerced body
21 22 23 |
# File 'lib/imperium/transaction_response.rb', line 21 def errors coerced_body['Errors'] end |