Exception: Graphiti::Errors::ExtraAttributeNotFound

Inherits:
Base
  • Object
show all
Defined in:
lib/graphiti/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(resource_class, name) ⇒ ExtraAttributeNotFound

Returns a new instance of ExtraAttributeNotFound.



124
125
126
127
# File 'lib/graphiti/errors.rb', line 124

def initialize(resource_class, name)
  @resource_class = resource_class
  @name = name
end

Instance Method Details

#messageObject



129
130
131
132
133
# File 'lib/graphiti/errors.rb', line 129

def message
  <<-MSG
    #{@resource_class.name}: called .on_extra_attribute #{@name.inspect}, but extra attribute #{@name.inspect} does not exist!
  MSG
end