Class: RSpecAPITest::HTTPHelpers::JSONHashResponse
- Inherits:
-
Hash
- Object
- Hash
- RSpecAPITest::HTTPHelpers::JSONHashResponse
- Defined in:
- lib/rspec_api_test/http_helpers.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(hash, code, headers) ⇒ JSONHashResponse
constructor
A new instance of JSONHashResponse.
Constructor Details
#initialize(hash, code, headers) ⇒ JSONHashResponse
Returns a new instance of JSONHashResponse.
16 17 18 19 20 |
# File 'lib/rspec_api_test/http_helpers.rb', line 16 def initialize(hash, code, headers) @code = code @headers = headers super(hash.with_indifferent_access) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
15 16 17 |
# File 'lib/rspec_api_test/http_helpers.rb', line 15 def code @code end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
15 16 17 |
# File 'lib/rspec_api_test/http_helpers.rb', line 15 def headers @headers end |