class Slack::Web::Api::Errors::Error

Attributes

response[R]

Public Class Methods

new(message, response = nil) click to toggle source
Calls superclass method
# File lib/slack/web/api/errors/slack_error.rb, line 9
def initialize(message, response = nil)
  super message
  @response = response
end

Public Instance Methods

error() click to toggle source
# File lib/slack/web/api/errors/slack_error.rb, line 14
def error
  response.body.error
end
errors() click to toggle source
# File lib/slack/web/api/errors/slack_error.rb, line 18
def errors
  response.body.errors
end
response_metadata() click to toggle source
# File lib/slack/web/api/errors/slack_error.rb, line 22
def response_metadata
  response.body.response_metadata
end