Exception: JSONAPI::Realizer::Error::InvalidDataTypeProperty

Inherits:
JSONAPI::Realizer::Error show all
Defined in:
lib/jsonapi/realizer/error/invalid_data_type_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_data_type_property.rb', line 5

def given
  @given
end

Instance Method Details

#messageObject



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

def message
  "root.data property was #{given}, which is not an Hash, Array, or nil"
end