Class: AbstractStorage

Inherits:
Object
  • Object
show all
Defined in:
lib/thumbo/storages/abstract.rb

Direct Known Subclasses

Thumbo::Filesystem, Thumbo::Mogilefs

Instance Method Summary collapse

Instance Method Details

#delete(filename) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/thumbo/storages/abstract.rb', line 11

def delete filename
  raise NotImplementedError
end

#exist?(filename) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/thumbo/storages/abstract.rb', line 19

def exist? filename
  raise NotImplementedError
end

#paths(filename) ⇒ Object

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/thumbo/storages/abstract.rb', line 15

def paths filename
  raise NotImplementedError
end

#read(filename) ⇒ Object

Raises:

  • (NotImplementedError)


3
4
5
# File 'lib/thumbo/storages/abstract.rb', line 3

def read filename
  raise NotImplementedError
end

#write(filename, blob) ⇒ Object

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/thumbo/storages/abstract.rb', line 7

def write filename, blob
  raise NotImplementedError
end