Exception: Geoloco::Forbidden

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

Overview

Forbidden error class. Raised by adapters when a forbidden error is received from the providers

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Forbidden

Returns a new instance of Forbidden.



24
25
26
# File 'lib/geoloco.rb', line 24

def initialize(response)
  super "#{response.code} - #{response.body}"
end