Exception: Noticed::ResponseUnsuccessful

Inherits:
StandardError
  • Object
show all
Defined in:
lib/noticed.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response, url, args) ⇒ ResponseUnsuccessful

Returns a new instance of ResponseUnsuccessful.



55
56
57
58
59
60
61
# File 'lib/noticed.rb', line 55

def initialize(response, url, args)
  @response = response
  @url = url
  @args = args

  super("POST request to #{url} returned #{response.code} response:\n#{response.body.inspect}")
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



53
54
55
# File 'lib/noticed.rb', line 53

def response
  @response
end