Module: Dependor::Sinatra::Objects
- Included in:
- DefaultInjector
- Defined in:
- lib/dependor-sinatra/objects.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Instance Method Summary collapse
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
4 5 6 |
# File 'lib/dependor-sinatra/objects.rb', line 4 def env @env end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
4 5 6 |
# File 'lib/dependor-sinatra/objects.rb', line 4 def params @params end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
4 5 6 |
# File 'lib/dependor-sinatra/objects.rb', line 4 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
4 5 6 |
# File 'lib/dependor-sinatra/objects.rb', line 4 def response @response end |
#session ⇒ Object (readonly)
Returns the value of attribute session.
4 5 6 |
# File 'lib/dependor-sinatra/objects.rb', line 4 def session @session end |
Instance Method Details
#sinatra_objects(objects) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/dependor-sinatra/objects.rb', line 6 def sinatra_objects(objects) @params = objects.params @env = objects.env @request = objects.request @response = objects.response @session = objects.session end |