Class: RSpecAPITest::HTTPHelpers::JSONArrayResponse

Inherits:
Array
  • Object
show all
Defined in:
lib/rspec_api_test/http_helpers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



24
25
26
# File 'lib/rspec_api_test/http_helpers.rb', line 24

def code
  @code
end

#headersObject (readonly)

Returns the value of attribute headers.



24
25
26
# File 'lib/rspec_api_test/http_helpers.rb', line 24

def headers
  @headers
end