Module: Dependor::Sinatra::Objects

Included in:
DefaultInjector
Defined in:
lib/dependor-sinatra/objects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



4
5
6
# File 'lib/dependor-sinatra/objects.rb', line 4

def env
  @env
end

#paramsObject (readonly)

Returns the value of attribute params.



4
5
6
# File 'lib/dependor-sinatra/objects.rb', line 4

def params
  @params
end

#requestObject (readonly)

Returns the value of attribute request.



4
5
6
# File 'lib/dependor-sinatra/objects.rb', line 4

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response.



4
5
6
# File 'lib/dependor-sinatra/objects.rb', line 4

def response
  @response
end

#sessionObject (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