Class: Increase::ResponseHash
- Inherits:
-
Hash
- Object
- Hash
- Increase::ResponseHash
- Defined in:
- lib/increase/response_hash.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #idempotent_replayed ⇒ Object
-
#initialize(hash, response: nil) ⇒ ResponseHash
constructor
A new instance of ResponseHash.
Constructor Details
#initialize(hash, response: nil) ⇒ ResponseHash
Returns a new instance of ResponseHash.
5 6 7 8 |
# File 'lib/increase/response_hash.rb', line 5 def initialize(hash, response: nil) @response = response merge!(hash) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/increase/response_hash.rb', line 3 def response @response end |
Instance Method Details
#idempotent_replayed ⇒ Object
11 12 13 |
# File 'lib/increase/response_hash.rb', line 11 def idempotent_replayed response.headers["Idempotent-Replayed"] end |