Exception: Graphiti::Errors::InvalidLinkRendering

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

Instance Method Summary collapse

Constructor Details

#initialize(resource_class, attribute, value) ⇒ InvalidLinkRendering

Returns a new instance of InvalidLinkRendering.



732
733
734
735
736
# File 'lib/graphiti/errors.rb', line 732

def initialize(resource_class, attribute, value)
  @resource_class = resource_class
  @attribute = attribute
  @value = value
end

Instance Method Details

#messageObject



738
739
740
# File 'lib/graphiti/errors.rb', line 738

def message
  "#{@resource_class.name}: #{@attribute} must be true, false, or :on_demand. Got #{@value.inspect}."
end