Class: NetNoop::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/netnoop/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri, method, body, http_response = nil) ⇒ Request

Returns a new instance of Request.



8
9
10
11
12
13
# File 'lib/netnoop/request.rb', line 8

def initialize(uri, method, body, http_response = nil)
  @uri = uri
  @method = method
  @body = body
  @response = Response.new(http_response)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



5
6
7
# File 'lib/netnoop/request.rb', line 5

def body
  @body
end

#methodObject (readonly)

Returns the value of attribute method.



4
5
6
# File 'lib/netnoop/request.rb', line 4

def method
  @method
end

#responseObject (readonly)

Returns the value of attribute response.



6
7
8
# File 'lib/netnoop/request.rb', line 6

def response
  @response
end

#uriObject (readonly)

Returns the value of attribute uri.



3
4
5
# File 'lib/netnoop/request.rb', line 3

def uri
  @uri
end