Exception: JsonapiCompliable::Errors::InvalidInclude
- Inherits:
-
StandardError
- Object
- StandardError
- JsonapiCompliable::Errors::InvalidInclude
- Defined in:
- lib/jsonapi_compliable/errors.rb
Instance Method Summary collapse
-
#initialize(relationship, parent_resource) ⇒ InvalidInclude
constructor
A new instance of InvalidInclude.
- #message ⇒ Object
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
#message ⇒ Object
22 23 24 |
# File 'lib/jsonapi_compliable/errors.rb', line 22 def "The requested included relationship \"#{@relationship}\" is not supported on resource \"#{@parent_resource}\"" end |