Exception: Graphiti::Errors::ExtraAttributeNotFound
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(resource_class, name) ⇒ ExtraAttributeNotFound
constructor
A new instance of ExtraAttributeNotFound.
- #message ⇒ Object
Constructor Details
#initialize(resource_class, name) ⇒ ExtraAttributeNotFound
Returns a new instance of ExtraAttributeNotFound.
149 150 151 152 |
# File 'lib/graphiti/errors.rb', line 149 def initialize(resource_class, name) @resource_class = resource_class @name = name end |
Instance Method Details
#message ⇒ Object
154 155 156 157 158 |
# File 'lib/graphiti/errors.rb', line 154 def <<~MSG #{@resource_class.name}: called .on_extra_attribute #{@name.inspect}, but extra attribute #{@name.inspect} does not exist! MSG end |