Class: Harbor::Test::Response

Inherits:
Response
  • Object
show all
Defined in:
lib/harbor/test/response.rb

Constant Summary

Constants inherited from Response

Response::NOT_MODIFIED_OMIT_HEADERS

Instance Attribute Summary collapse

Attributes inherited from Response

#errors, #headers, #status

Instance Method Summary collapse

Methods inherited from Response

#[], #[]=, #abort!, #buffer, #cache, #content_type, #content_type=, #flush, #inspect, #message, #messages, #not_modified!, #print, #puts, #redirect, #redirect!, #render, #send_file, #send_files, #set_cookie, #size, #size=, #stream_file, #to_a, #unauthorized, #unauthorized!

Constructor Details

#initializeResponse

We redefine Harbor::Response.initialize(request) with an empty arg variant for use with a container.



11
12
13
# File 'lib/harbor/test/response.rb', line 11

def initialize
  super(nil)
end

Instance Attribute Details

#requestObject

Returns the value of attribute request.



5
6
7
# File 'lib/harbor/test/response.rb', line 5

def request
  @request
end