Exception: ApiRecipes::ApiNameClashError
- Inherits:
-
Exception
- Object
- Exception
- ApiRecipes::ApiNameClashError
- Defined in:
- lib/api_recipes/exceptions.rb
Instance Method Summary collapse
-
#initialize(object, endpoint_name) ⇒ ApiNameClashError
constructor
A new instance of ApiNameClashError.
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) = "#{object.class} already defines a method called '#{endpoint_name}'. Tip: change api name" super() end |