Class: Friendly::Storage

Inherits:
Object
  • Object
show all
Defined in:
lib/friendly/storage.rb

Direct Known Subclasses

Cache, Table

Instance Method Summary collapse

Instance Method Details

#all(conditions) ⇒ Object

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Returns:

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/friendly/storage.rb', line 7

def update(document)
  raise NotImplementedError, "#{self.class.name}#update is not implemented."
end