Exception: ApiRecipes::MissingRouteAttribute

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

Instance Method Summary collapse

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)
  message = "route '#{endpoint}.#{route}' requires '#{attribute}' attribute but this was not provided"
  super(message)
end