Class: RSpecAPITest::HTTPHelpers::JSONArrayResponse
- Inherits:
-
Array
- Object
- Array
- RSpecAPITest::HTTPHelpers::JSONArrayResponse
- 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(array, code, headers) ⇒ JSONArrayResponse
constructor
A new instance of JSONArrayResponse.
Constructor Details
#initialize(array, code, headers) ⇒ JSONArrayResponse
Returns a new instance of JSONArrayResponse.
25 26 27 28 29 |
# File 'lib/rspec_api_test/http_helpers.rb', line 25 def initialize(array, code, headers) @code = code @headers = headers super(array) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
24 25 26 |
# File 'lib/rspec_api_test/http_helpers.rb', line 24 def code @code end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
24 25 26 |
# File 'lib/rspec_api_test/http_helpers.rb', line 24 def headers @headers end |