class Hitblocks::Error
Attributes
error[R]
status[R]
Public Class Methods
new(params)
click to toggle source
# File lib/hitblocks/error.rb, line 7 def initialize(params) @error = params[:error] @status = params[:status] if @error.match /Invalid Token/ raise Hitblocks::APIKeyIncorrect, "Your API key is incorrect. Please double check and set the value with Hitblocks.api_key = 'YOUR-API-KEY-HERE'" end end