Exception: JsonapiCompliable::Errors::InvalidInclude

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

Instance Method Summary collapse

Constructor Details

#initialize(relationship, parent_resource) ⇒ InvalidInclude

Returns a new instance of InvalidInclude



17
18
19
20
# File 'lib/jsonapi_compliable/errors.rb', line 17

def initialize(relationship, parent_resource)
  @relationship = relationship
  @parent_resource = parent_resource
end

Instance Method Details

#messageObject



22
23
24
# File 'lib/jsonapi_compliable/errors.rb', line 22

def message
  "The requested included relationship \"#{@relationship}\" is not supported on resource \"#{@parent_resource}\""
end