Exception: JSONAPI::Materializer::Error::ResourceAttributeNotFound

Inherits:
JSONAPI::Materializer::Error show all
Defined in:
lib/jsonapi/materializer/error/resource_attribute_not_found.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#materializerObject

Returns the value of attribute materializer.



8
9
10
# File 'lib/jsonapi/materializer/error/resource_attribute_not_found.rb', line 8

def materializer
  @materializer
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/jsonapi/materializer/error/resource_attribute_not_found.rb', line 7

def name
  @name
end

Instance Method Details

#messageObject



10
11
12
# File 'lib/jsonapi/materializer/error/resource_attribute_not_found.rb', line 10

def message
  "#{materializer} doesn't define the attribute #{name}"
end