Method: HTTParty::Decompressor#initialize

Defined in:
lib/httparty/decompressor.rb

#initialize(body, encoding) ⇒ Decompressor

Returns a new instance of Decompressor.

Parameters:

  • body (String)
    • the response body of the request

  • encoding (Symbol)
    • the Content-Encoding algorithm used to encode the body



34
35
36
37
# File 'lib/httparty/decompressor.rb', line 34

def initialize(body, encoding)
  @body = body
  @encoding = encoding
end