Class: Increase::ResponseHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/increase/response_hash.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseObject (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_replayedObject



11
12
13
# File 'lib/increase/response_hash.rb', line 11

def idempotent_replayed
  response.headers["Idempotent-Replayed"]
end