Exception: JSONAPI::Realizer::Error::InvalidRootProperty

Inherits:
JSONAPI::Realizer::Error show all
Defined in:
lib/jsonapi/realizer/error/invalid_root_property.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#givenObject

Returns the value of attribute given.



5
6
7
# File 'lib/jsonapi/realizer/error/invalid_root_property.rb', line 5

def given
  @given
end

Instance Method Details

#messageObject



7
8
9
# File 'lib/jsonapi/realizer/error/invalid_root_property.rb', line 7

def message
  "root property was #{given}, which is not an Hash"
end