Method: Ferto::ResponseError#initialize

Defined in:
lib/ferto.rb

#initialize(err, response = nil) ⇒ ResponseError

Initialize a Ferto::ResponseError

Parameters:

  • err (String)

    A string describing the error occured

  • response (Curl::Easy | nil) (defaults to: nil)

    a Curl::Easy object that represents the response returned by the download method. Default: nil



29
30
31
32
# File 'lib/ferto.rb', line 29

def initialize(err, response=nil)
  super(err)
  @response = response
end