Class: Reactive::Response
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#format ⇒ Object
Returns the value of attribute format.
-
#handler_name ⇒ Object
Returns the value of attribute handler_name.
-
#redirected_to ⇒ Object
Returns the value of attribute redirected_to.
-
#template ⇒ Object
Returns the value of attribute template.
-
#treatment ⇒ Object
Returns the value of attribute treatment.
-
#variables ⇒ Object
Returns the value of attribute variables.
Instance Method Summary collapse
- #clear ⇒ Object
-
#initialize ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize ⇒ Response
Returns a new instance of Response.
5 6 7 |
# File 'lib/reactive-core/response.rb', line 5 def initialize @variables = {} end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/reactive-core/response.rb', line 3 def body @body end |
#format ⇒ Object
Returns the value of attribute format.
3 4 5 |
# File 'lib/reactive-core/response.rb', line 3 def format @format end |
#handler_name ⇒ Object
Returns the value of attribute handler_name.
3 4 5 |
# File 'lib/reactive-core/response.rb', line 3 def handler_name @handler_name end |
#redirected_to ⇒ Object
Returns the value of attribute redirected_to.
3 4 5 |
# File 'lib/reactive-core/response.rb', line 3 def redirected_to @redirected_to end |
#template ⇒ Object
Returns the value of attribute template.
3 4 5 |
# File 'lib/reactive-core/response.rb', line 3 def template @template end |
#treatment ⇒ Object
Returns the value of attribute treatment.
3 4 5 |
# File 'lib/reactive-core/response.rb', line 3 def treatment @treatment end |
#variables ⇒ Object
Returns the value of attribute variables.
3 4 5 |
# File 'lib/reactive-core/response.rb', line 3 def variables @variables end |
Instance Method Details
#clear ⇒ Object
9 10 11 12 |
# File 'lib/reactive-core/response.rb', line 9 def clear @body = @redirected_to = @handler_name = @treatment = @format = nil @variables = {} end |