class RemoteResource::BaseClassNotFound

Public Class Methods

new(which_klass) click to toggle source
Calls superclass method
# File lib/remote_resource/errors.rb, line 25
def initialize(which_klass)
  @which_klass = which_klass
  super(message)
end

Public Instance Methods

message() click to toggle source
# File lib/remote_resource/errors.rb, line 30
    def message
      <<-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