Exception: BaseApiClient::ApiError

Inherits:
Error
  • Object
show all
Defined in:
lib/dynalist/base_api_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response = nil) ⇒ ApiError

Returns a new instance of ApiError.

Parameters:

  • response (Response) (defaults to: nil)


17
18
19
# File 'lib/dynalist/base_api_client.rb', line 17

def initialize(response = nil)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



14
15
16
# File 'lib/dynalist/base_api_client.rb', line 14

def response
  @response
end

Instance Method Details

#messageObject



21
22
23
# File 'lib/dynalist/base_api_client.rb', line 21

def message
  @response[:_msg]
end