Class: Sipatra::HelperMethods::ResponseEnvironment
- Inherits:
-
Object
- Object
- Sipatra::HelperMethods::ResponseEnvironment
- Defined in:
- lib/sipatra/helpers.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#response ⇒ Object
(also: #message)
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(app, response) ⇒ ResponseEnvironment
constructor
A new instance of ResponseEnvironment.
Constructor Details
#initialize(app, response) ⇒ ResponseEnvironment
Returns a new instance of ResponseEnvironment.
170 171 172 |
# File 'lib/sipatra/helpers.rb', line 170 def initialize(app, response) @app, @response = app, response end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
167 168 169 |
# File 'lib/sipatra/helpers.rb', line 167 def app @app end |
#response ⇒ Object (readonly) Also known as: message
Returns the value of attribute response.
167 168 169 |
# File 'lib/sipatra/helpers.rb', line 167 def response @response end |