Class: Thumbo::AbstractStorage

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

Direct Known Subclasses

Filesystem, Mogilefs

Instance Method Summary collapse

Instance Method Details

#delete(filename) ⇒ Object

Raises:

  • (NotImplementedError)


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

def delete filename
  raise NotImplementedError
end

#exist?(filename) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


24
25
26
# File 'lib/thumbo/storages/abstract.rb', line 24

def exist? filename
  raise NotImplementedError
end

#paths(filename) ⇒ Object

Raises:

  • (NotImplementedError)


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

def paths filename
  raise NotImplementedError
end

#read(filename) ⇒ Object

Raises:

  • (NotImplementedError)


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

def read filename
  raise NotImplementedError
end

#write(filename, blob) ⇒ Object

Raises:

  • (NotImplementedError)


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

def write filename, blob
  raise NotImplementedError
end

#write_file(filename, file) ⇒ Object

Raises:

  • (NotImplementedError)


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

def write_file filename, file
  raise NotImplementedError
end