Class: Authgasm::ControllerAdapters::AbstractAdapter
- Inherits:
-
Object
- Object
- Authgasm::ControllerAdapters::AbstractAdapter
- Defined in:
- lib/authgasm/controller_adapters/abstract_adapter.rb
Overview
Abstract Adapter
Allows you to use Authgasm in any framework you want, not just rails. See tha RailsAdapter for an example of how to adapter Authgasm to work with your framework.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#controller ⇒ Object
Returns the value of attribute controller.
Instance Method Summary collapse
- #authenticate_with_http_basic(*args, &block) ⇒ Object
- #cookies ⇒ Object
-
#initialize(controller) ⇒ AbstractAdapter
constructor
A new instance of AbstractAdapter.
- #request ⇒ Object
- #session ⇒ Object
Constructor Details
#initialize(controller) ⇒ AbstractAdapter
Returns a new instance of AbstractAdapter.
8 9 10 |
# File 'lib/authgasm/controller_adapters/abstract_adapter.rb', line 8 def initialize(controller) self.controller = controller end |
Instance Attribute Details
#controller ⇒ Object
Returns the value of attribute controller.
6 7 8 |
# File 'lib/authgasm/controller_adapters/abstract_adapter.rb', line 6 def controller @controller end |
Instance Method Details
#authenticate_with_http_basic(*args, &block) ⇒ Object
12 13 |
# File 'lib/authgasm/controller_adapters/abstract_adapter.rb', line 12 def authenticate_with_http_basic(*args, &block) end |
#cookies ⇒ Object
15 16 |
# File 'lib/authgasm/controller_adapters/abstract_adapter.rb', line 15 def end |
#request ⇒ Object
18 19 |
# File 'lib/authgasm/controller_adapters/abstract_adapter.rb', line 18 def request end |
#session ⇒ Object
21 22 |
# File 'lib/authgasm/controller_adapters/abstract_adapter.rb', line 21 def session end |