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

Returns a new instance of APIError.



55
56
57
58
# File 'lib/chatwork/chatwork_error.rb', line 55

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.



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

def errors
  @errors
end