Class: EndpointFlux::Request
- Inherits:
-
Object
- Object
- EndpointFlux::Request
- Defined in:
- lib/endpoint_flux/request.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#params ⇒ Object
Returns the value of attribute params.
-
#remote_ip ⇒ Object
Returns the value of attribute remote_ip.
-
#scope ⇒ Object
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(headers: {}, remote_ip: '', params: {}, namespace: nil) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(headers: {}, remote_ip: '', params: {}, namespace: nil) ⇒ Request
Returns a new instance of Request.
3 4 5 6 7 8 |
# File 'lib/endpoint_flux/request.rb', line 3 def initialize(headers: {}, remote_ip: '', params: {}, namespace: nil) @headers = headers @remote_ip = remote_ip @params = params @namespace = namespace end |
Instance Attribute Details
#endpoint ⇒ Object
Returns the value of attribute endpoint.
14 15 16 |
# File 'lib/endpoint_flux/request.rb', line 14 def endpoint @endpoint end |
#headers ⇒ Object
Returns the value of attribute headers.
11 12 13 |
# File 'lib/endpoint_flux/request.rb', line 11 def headers @headers end |
#namespace ⇒ Object
Returns the value of attribute namespace.
13 14 15 |
# File 'lib/endpoint_flux/request.rb', line 13 def namespace @namespace end |
#params ⇒ Object
Returns the value of attribute params.
10 11 12 |
# File 'lib/endpoint_flux/request.rb', line 10 def params @params end |
#remote_ip ⇒ Object
Returns the value of attribute remote_ip.
12 13 14 |
# File 'lib/endpoint_flux/request.rb', line 12 def remote_ip @remote_ip end |
#scope ⇒ Object
Returns the value of attribute scope.
15 16 17 |
# File 'lib/endpoint_flux/request.rb', line 15 def scope @scope end |