Class: Shrinker::Backend::Abstract
- Inherits:
-
Object
- Object
- Shrinker::Backend::Abstract
- Defined in:
- lib/shrinker/backend/abstract.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #fetch(token) ⇒ Object
-
#initialize(options = {}) ⇒ Abstract
constructor
A new instance of Abstract.
- #store(raw_url, token, attributes = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Abstract
Returns a new instance of Abstract.
6 7 8 |
# File 'lib/shrinker/backend/abstract.rb', line 6 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/shrinker/backend/abstract.rb', line 4 def @options end |
Instance Method Details
#fetch(token) ⇒ Object
14 15 16 |
# File 'lib/shrinker/backend/abstract.rb', line 14 def fetch(token) raise "Shrinker::Backend::Abstract.fetch not implemented" end |
#store(raw_url, token, attributes = {}) ⇒ Object
10 11 12 |
# File 'lib/shrinker/backend/abstract.rb', line 10 def store(raw_url, token, attributes = {}) raise "Shrinker::Backend::Abstract.store not implemented" end |