class Dingding::Notifier::APIError
Attributes
response[R]
Public Class Methods
new(response)
click to toggle source
# File lib/dingding-notifier/util/http_client.rb, line 13 def initialize(response) @response = response end
Public Instance Methods
message()
click to toggle source
# File lib/dingding-notifier/util/http_client.rb, line 17 def message <<-MSG The slack API returned an error: #{@response.body} (HTTP Code #{@response.code}) Check the "Handling Errors" section on https://api.slack.com/incoming-webhooks for more information MSG end