Class: Paquito::Compressor

Inherits:
Object
  • Object
show all
Defined in:
lib/paquito/compressor.rb

Instance Method Summary collapse

Constructor Details

#initialize(compressor) ⇒ Compressor

Returns a new instance of Compressor.



5
6
7
# File 'lib/paquito/compressor.rb', line 5

def initialize(compressor)
  @compressor = compressor
end

Instance Method Details

#dump(serial) ⇒ Object



9
10
11
# File 'lib/paquito/compressor.rb', line 9

def dump(serial)
  @compressor.compress(serial)
end

#load(payload) ⇒ Object



13
14
15
# File 'lib/paquito/compressor.rb', line 13

def load(payload)
  @compressor.decompress(payload)
end