Class: Graphiti::Errors::InvalidValueObject

Inherits:
Base
  • Object
show all
Defined in:
lib/graphiti_gql/graphiti_hax.rb

Instance Method Summary collapse

Constructor Details

#initialize(resource, name, value) ⇒ InvalidValueObject

Returns a new instance of InvalidValueObject.



554
555
556
557
558
# File 'lib/graphiti_gql/graphiti_hax.rb', line 554

def initialize(resource, name, value)
  @resource = resource
  @name = name
  @value = value
end

Instance Method Details

#messageObject



560
561
562
# File 'lib/graphiti_gql/graphiti_hax.rb', line 560

def message
  "#{@resource} - value object '#{@name}' configured with array: true but returned non-array: #{@value.inspect}"
end