Class: Authlogic::ControllerAdapters::SinatraAdapter::Cookies
- Inherits:
-
Object
- Object
- Authlogic::ControllerAdapters::SinatraAdapter::Cookies
- Defined in:
- lib/novelys_authlogic/controller_adapters/sinatra_adapter.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #[]=(key, options) ⇒ Object
- #delete(key, options = {}) ⇒ Object
-
#initialize(request, response) ⇒ Cookies
constructor
A new instance of Cookies.
- #method_missing(meth, *args, &block) ⇒ Object
Constructor Details
#initialize(request, response) ⇒ Cookies
Returns a new instance of Cookies.
8 9 10 11 |
# File 'lib/novelys_authlogic/controller_adapters/sinatra_adapter.rb', line 8 def initialize(request, response) @request = request @response = response end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object
21 22 23 |
# File 'lib/novelys_authlogic/controller_adapters/sinatra_adapter.rb', line 21 def method_missing(meth, *args, &block) @request..send(meth, *args, &block) end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
6 7 8 |
# File 'lib/novelys_authlogic/controller_adapters/sinatra_adapter.rb', line 6 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/novelys_authlogic/controller_adapters/sinatra_adapter.rb', line 6 def response @response end |
Instance Method Details
#[]=(key, options) ⇒ Object
17 18 19 |
# File 'lib/novelys_authlogic/controller_adapters/sinatra_adapter.rb', line 17 def []=(key, ) @response.(key, ) end |
#delete(key, options = {}) ⇒ Object
13 14 15 |
# File 'lib/novelys_authlogic/controller_adapters/sinatra_adapter.rb', line 13 def delete(key, = {}) @request..delete(key) end |