Class: ExpireMe::Adapter
- Inherits:
-
Object
- Object
- ExpireMe::Adapter
- Defined in:
- lib/expire_me/adapter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
4 5 6 |
# File 'lib/expire_me/adapter.rb', line 4 def response @response end |
Class Method Details
.select(adapter_name) ⇒ Object
10 11 12 13 14 |
# File 'lib/expire_me/adapter.rb', line 10 def self.select(adapter_name) return self.new if self.name != Adapter.to_s (ExpireMe.const_get adapter_name.to_s.classify).new end |
Instance Method Details
#set_expiration(r, seconds = 0) ⇒ Object
6 7 8 |
# File 'lib/expire_me/adapter.rb', line 6 def set_expiration(r, seconds=0) self.response = r end |