Class: Paquito::Compressor
- Inherits:
-
Object
- Object
- Paquito::Compressor
- Defined in:
- lib/paquito/compressor.rb
Instance Method Summary collapse
- #dump(serial) ⇒ Object
-
#initialize(compressor) ⇒ Compressor
constructor
A new instance of Compressor.
- #load(payload) ⇒ Object
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 |