Exception: Graphiti::Errors::UnreadableAttribute
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(resource_class, name) ⇒ UnreadableAttribute
constructor
A new instance of UnreadableAttribute.
- #message ⇒ Object
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
#message ⇒ Object
11 12 13 |
# File 'lib/graphiti/errors.rb', line 11 def "#{@resource_class}: Requested field #{@name}, but not authorized to read it" end |