Class: Friendly::Storage
- Inherits:
-
Object
- Object
- Friendly::Storage
- Defined in:
- lib/friendly/storage.rb
Instance Method Summary collapse
- #all(conditions) ⇒ Object
- #count(query) ⇒ Object
- #create(document) ⇒ Object
- #destroy(document) ⇒ Object
- #first(conditions) ⇒ Object
- #satisfies?(conditions) ⇒ Boolean
- #update(document) ⇒ Object
Instance Method Details
#all(conditions) ⇒ Object
19 20 21 |
# File 'lib/friendly/storage.rb', line 19 def all(conditions) raise NotImplementedError, "#{self.class.name}#all is not implemented." end |
#count(query) ⇒ Object
23 24 25 |
# File 'lib/friendly/storage.rb', line 23 def count(query) raise NotImplementedError, "#{self.class.name}#count is not implemented." end |
#create(document) ⇒ Object
3 4 5 |
# File 'lib/friendly/storage.rb', line 3 def create(document) raise NotImplementedError, "#{self.class.name}#create is not implemented." end |
#destroy(document) ⇒ Object
11 12 13 |
# File 'lib/friendly/storage.rb', line 11 def destroy(document) raise NotImplementedError, "#{self.class.name}#destroy is not implemented." end |
#first(conditions) ⇒ Object
15 16 17 |
# File 'lib/friendly/storage.rb', line 15 def first(conditions) raise NotImplementedError, "#{self.class.name}#first is not implemented." end |
#satisfies?(conditions) ⇒ Boolean
27 28 29 |
# File 'lib/friendly/storage.rb', line 27 def satisfies?(conditions) raise NotImplementedError, "#{self.class.name}#satisfies? is not implemented." end |
#update(document) ⇒ Object
7 8 9 |
# File 'lib/friendly/storage.rb', line 7 def update(document) raise NotImplementedError, "#{self.class.name}#update is not implemented." end |