Exception: ApiRecipes::MissingRouteAttribute
- Inherits:
-
Exception
- Object
- Exception
- ApiRecipes::MissingRouteAttribute
- Defined in:
- lib/api_recipes/exceptions.rb
Instance Method Summary collapse
-
#initialize(endpoint = nil, route = nil, attribute = nil) ⇒ MissingRouteAttribute
constructor
A new instance of MissingRouteAttribute.
Constructor Details
#initialize(endpoint = nil, route = nil, attribute = nil) ⇒ MissingRouteAttribute
Returns a new instance of MissingRouteAttribute.
18 19 20 21 |
# File 'lib/api_recipes/exceptions.rb', line 18 def initialize(endpoint = nil, route = nil, attribute = nil) = "route '#{endpoint}.#{route}' requires '#{attribute}' attribute but this was not provided" super() end |