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) ⇒ Request

Returns a new instance of Request.



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

def initialize(uri, method, body)
  @uri = uri
  @method = method
  @body = body
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

#uriObject (readonly)

Returns the value of attribute uri.



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

def uri
  @uri
end