Class: Trusted::Request
- Inherits:
-
Object
- Object
- Trusted::Request
- Defined in:
- lib/trusted/request.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#path_info ⇒ Object
readonly
Returns the value of attribute path_info.
-
#query_string ⇒ Object
readonly
Returns the value of attribute query_string.
-
#remote_addr ⇒ Object
readonly
Returns the value of attribute remote_addr.
-
#server_port ⇒ Object
readonly
Returns the value of attribute server_port.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(method, uri, path_info, query_string, remote_addr, server_port, headers, body) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(method, uri, path_info, query_string, remote_addr, server_port, headers, body) ⇒ Request
Returns a new instance of Request.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/trusted/request.rb', line 5 def initialize(method, uri, path_info, query_string, remote_addr, server_port, headers, body) @method = method @uri = uri @path_info = path_info @query_string = query_string @remote_addr = remote_addr @server_port = server_port @headers = headers @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/trusted/request.rb', line 3 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
3 4 5 |
# File 'lib/trusted/request.rb', line 3 def headers @headers end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
3 4 5 |
# File 'lib/trusted/request.rb', line 3 def method @method end |
#path_info ⇒ Object (readonly)
Returns the value of attribute path_info.
3 4 5 |
# File 'lib/trusted/request.rb', line 3 def path_info @path_info end |
#query_string ⇒ Object (readonly)
Returns the value of attribute query_string.
3 4 5 |
# File 'lib/trusted/request.rb', line 3 def query_string @query_string end |
#remote_addr ⇒ Object (readonly)
Returns the value of attribute remote_addr.
3 4 5 |
# File 'lib/trusted/request.rb', line 3 def remote_addr @remote_addr end |
#server_port ⇒ Object (readonly)
Returns the value of attribute server_port.
3 4 5 |
# File 'lib/trusted/request.rb', line 3 def server_port @server_port end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
3 4 5 |
# File 'lib/trusted/request.rb', line 3 def uri @uri end |