Exception: RemoteResource::BaseClassNotFound
- Defined in:
- lib/remote_resource/errors.rb
Instance Method Summary collapse
-
#initialize(which_klass) ⇒ BaseClassNotFound
constructor
A new instance of BaseClassNotFound.
- #message ⇒ Object
Constructor Details
#initialize(which_klass) ⇒ BaseClassNotFound
Returns a new instance of BaseClassNotFound.
25 26 27 28 |
# File 'lib/remote_resource/errors.rb', line 25 def initialize(which_klass) @which_klass = which_klass super() end |
Instance Method Details
#message ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/remote_resource/errors.rb', line 30 def <<-MESSAGE.strip_heredoc A RemoteResource::Base class descendant named `#{@which_klass}` could not be found. Descendant class names are generally suffixed with 'Attributes' and looked up without the attributes symbol. Example: A base class named 'GithubUserAttributes' is looked up with :github_user. MESSAGE end |