Method: Webpush::ResponseError#initialize

Defined in:
lib/webpush/errors.rb

#initialize(response, host) ⇒ ResponseError

Returns a new instance of ResponseError.



11
12
13
14
15
# File 'lib/webpush/errors.rb', line 11

def initialize(response, host)
  @response = response
  @host = host
  super "host: #{host}, #{@response.inspect}\nbody:\n#{@response.body}"
end