Exception: ChatWork::APIError

Inherits:
ChatWorkError show all
Defined in:
lib/chatwork/chatwork_error.rb

Instance Attribute Summary collapse

Attributes inherited from ChatWorkError

#error_response, #status

Instance Method Summary collapse

Methods inherited from ChatWorkError

from_response

Constructor Details

#initialize(status, error_response) ⇒ APIError



48
49
50
51
# File 'lib/chatwork/chatwork_error.rb', line 48

def initialize(status, error_response)
  @errors = error_response
  super(error_response[0], status, error_response)
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



46
47
48
# File 'lib/chatwork/chatwork_error.rb', line 46

def errors
  @errors
end