Exception: Graphiti::Errors::UnreadableAttribute

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

Instance Method Summary collapse

Constructor Details

#initialize(resource_class, name) ⇒ UnreadableAttribute

Returns a new instance of UnreadableAttribute.



6
7
8
9
# File 'lib/graphiti/errors.rb', line 6

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

Instance Method Details

#messageObject



11
12
13
# File 'lib/graphiti/errors.rb', line 11

def message
  "#{@resource_class}: Requested field #{@name}, but not authorized to read it"
end