Class: Shrinker::Backend::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/shrinker/backend/abstract.rb

Direct Known Subclasses

Redis

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = {})
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/shrinker/backend/abstract.rb', line 4

def options
  @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