Class: Togl::Adapter
- Inherits:
-
Object
- Object
- Togl::Adapter
- Defined in:
- lib/togl/adapter.rb,
lib/togl/adapter/redis.rb,
lib/togl/adapter/rack_session.rb
Direct Known Subclasses
Defined Under Namespace
Classes: RackSession, Redis
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Adapter
constructor
A new instance of Adapter.
Constructor Details
#initialize(name) ⇒ Adapter
Returns a new instance of Adapter.
5 6 7 |
# File 'lib/togl/adapter.rb', line 5 def initialize(name) @name = name.to_sym end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/togl/adapter.rb', line 3 def name @name end |