Class: Paquito::Deflater

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

Instance Method Summary collapse

Constructor Details

#initialize(deflater) ⇒ Deflater

Returns a new instance of Deflater.



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

def initialize(deflater)
  @deflater = deflater
end

Instance Method Details

#dump(serial) ⇒ Object



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

def dump(serial)
  @deflater.deflate(serial)
end

#load(payload) ⇒ Object



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

def load(payload)
  @deflater.inflate(payload)
end