Class: SecureNative::RequestContext
- Inherits:
-
Object
- Object
- SecureNative::RequestContext
- Defined in:
- lib/securenative/request_context.rb
Instance Attribute Summary collapse
-
#cid ⇒ Object
Returns the value of attribute cid.
-
#fp ⇒ Object
Returns the value of attribute fp.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#http_method ⇒ Object
Returns the value of attribute http_method.
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#remote_ip ⇒ Object
Returns the value of attribute remote_ip.
-
#url ⇒ Object
Returns the value of attribute url.
-
#vid ⇒ Object
Returns the value of attribute vid.
Instance Method Summary collapse
-
#initialize(cid: nil, vid: nil, fp: nil, ip: nil, remote_ip: nil, headers: nil, url: nil, http_method: nil) ⇒ RequestContext
constructor
A new instance of RequestContext.
Constructor Details
#initialize(cid: nil, vid: nil, fp: nil, ip: nil, remote_ip: nil, headers: nil, url: nil, http_method: nil) ⇒ RequestContext
Returns a new instance of RequestContext.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/securenative/request_context.rb', line 8 def initialize(cid: nil, vid: nil, fp: nil, ip: nil, remote_ip: nil, headers: nil, url: nil, http_method: nil) @cid = cid @vid = vid @fp = fp @ip = ip @remote_ip = remote_ip @headers = headers @url = url @method = http_method end |
Instance Attribute Details
#cid ⇒ Object
Returns the value of attribute cid.
5 6 7 |
# File 'lib/securenative/request_context.rb', line 5 def cid @cid end |
#fp ⇒ Object
Returns the value of attribute fp.
5 6 7 |
# File 'lib/securenative/request_context.rb', line 5 def fp @fp end |
#headers ⇒ Object
Returns the value of attribute headers.
5 6 7 |
# File 'lib/securenative/request_context.rb', line 5 def headers @headers end |
#http_method ⇒ Object
Returns the value of attribute http_method.
5 6 7 |
# File 'lib/securenative/request_context.rb', line 5 def http_method @http_method end |
#ip ⇒ Object
Returns the value of attribute ip.
5 6 7 |
# File 'lib/securenative/request_context.rb', line 5 def ip @ip end |
#remote_ip ⇒ Object
Returns the value of attribute remote_ip.
5 6 7 |
# File 'lib/securenative/request_context.rb', line 5 def remote_ip @remote_ip end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/securenative/request_context.rb', line 5 def url @url end |
#vid ⇒ Object
Returns the value of attribute vid.
5 6 7 |
# File 'lib/securenative/request_context.rb', line 5 def vid @vid end |