Class: Reactive::Request
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#params ⇒ Object
Returns the value of attribute params.
-
#treatment ⇒ Object
Returns the value of attribute treatment.
Instance Method Summary collapse
- #default_format ⇒ Object
- #default_treatment ⇒ Object
-
#initialize(params = {}) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(params = {}) ⇒ Request
Returns a new instance of Request.
7 8 9 |
# File 'lib/reactive-core/request.rb', line 7 def initialize(params = {}) parse_params(params.dup) end |
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
4 5 6 |
# File 'lib/reactive-core/request.rb', line 4 def format @format end |
#params ⇒ Object
Returns the value of attribute params.
3 4 5 |
# File 'lib/reactive-core/request.rb', line 3 def params @params end |
#treatment ⇒ Object
Returns the value of attribute treatment.
5 6 7 |
# File 'lib/reactive-core/request.rb', line 5 def treatment @treatment end |