Class: Ratonvirus::Processable

Inherits:
Object
  • Object
show all
Defined in:
lib/ratonvirus/processable.rb

Instance Method Summary collapse

Constructor Details

#initialize(storage, asset) ⇒ Processable

Returns a new instance of Processable.



5
6
7
8
# File 'lib/ratonvirus/processable.rb', line 5

def initialize(storage, asset)
  @storage = storage
  @asset = asset
end

Instance Method Details

#path(&block) ⇒ Object



10
11
12
13
14
# File 'lib/ratonvirus/processable.rb', line 10

def path(&block)
  return unless block_given?

  @storage.asset_path(@asset, &block)
end

#removeObject



16
17
18
# File 'lib/ratonvirus/processable.rb', line 16

def remove
  @storage.asset_remove(@asset)
end