Exception: JsonApiFilter::UnknownInclusionsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/json_api_filter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(item) ⇒ UnknownInclusionsError

Returns a new instance of UnknownInclusionsError.



30
31
32
33
# File 'lib/json_api_filter.rb', line 30

def initialize(item)
  super(message)
  @item = item
end

Instance Attribute Details

#itemObject (readonly)

Returns the value of attribute item.



29
30
31
# File 'lib/json_api_filter.rb', line 29

def item
  @item
end

Instance Method Details

#messageObject



35
36
37
# File 'lib/json_api_filter.rb', line 35

def message
  "Unable to identify #{item} as a relationship path or inclusion"
end