Exception: AlphaApi::ResourceCollection::IncorrectClass
- Inherits:
-
StandardError
- Object
- StandardError
- AlphaApi::ResourceCollection::IncorrectClass
- Defined in:
- lib/alpha_api/resource_collection.rb
Instance Method Summary collapse
-
#initialize(existing, given) ⇒ IncorrectClass
constructor
A new instance of IncorrectClass.
Constructor Details
#initialize(existing, given) ⇒ IncorrectClass
Returns a new instance of IncorrectClass.
59 60 61 62 |
# File 'lib/alpha_api/resource_collection.rb', line 59 def initialize(existing, given) super "You're trying to register #{given.resource_name} which is a #{given.class}, " + "but #{existing.resource_name}, a #{existing.class} has already claimed that name." end |