Exception: ApiRecipes::ApiNameClashError

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

Instance Method Summary collapse

Constructor Details

#initialize(object, endpoint_name) ⇒ ApiNameClashError

Returns a new instance of ApiNameClashError.



4
5
6
7
# File 'lib/api_recipes/exceptions.rb', line 4

def initialize(object, endpoint_name)
  message = "#{object.class} already defines a method called '#{endpoint_name}'. Tip: change api name"
  super(message)
end