Exception: ApiRecipes::ApiConfigIsNotAnHash

Inherits:
Exception
  • Object
show all
Defined in:
lib/api_recipes/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(endpoint) ⇒ ApiConfigIsNotAnHash

Returns a new instance of ApiConfigIsNotAnHash.



58
59
60
61
# File 'lib/api_recipes/exceptions.rb', line 58

def initialize(endpoint)
  message = "provided config for endpoint '#{endpoint}' must be an Hash"
  super(message)
end