Exception: Squake::APIError

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/squake/api_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response:) ⇒ APIError

Returns a new instance of APIError.



12
13
14
15
# File 'lib/squake/api_error.rb', line 12

def initialize(response:)
  @response = response
  super(T.must(response.error_message))
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



9
10
11
# File 'lib/squake/api_error.rb', line 9

def response
  @response
end