Exception: JSONAPI::Serializer::UnsupportedIncludeError
- Defined in:
- lib/jsonapi/serializer/errors.rb
Instance Attribute Summary collapse
-
#include_item ⇒ Object
readonly
Returns the value of attribute include_item.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(include_item, klass) ⇒ UnsupportedIncludeError
constructor
A new instance of UnsupportedIncludeError.
- #message ⇒ Object
Constructor Details
#initialize(include_item, klass) ⇒ UnsupportedIncludeError
Returns a new instance of UnsupportedIncludeError.
10 11 12 13 14 |
# File 'lib/jsonapi/serializer/errors.rb', line 10 def initialize(include_item, klass) super() @include_item = include_item @klass = klass end |
Instance Attribute Details
#include_item ⇒ Object (readonly)
Returns the value of attribute include_item.
8 9 10 |
# File 'lib/jsonapi/serializer/errors.rb', line 8 def include_item @include_item end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
8 9 10 |
# File 'lib/jsonapi/serializer/errors.rb', line 8 def klass @klass end |
Instance Method Details
#message ⇒ Object
16 17 18 |
# File 'lib/jsonapi/serializer/errors.rb', line 16 def "#{include_item} is not specified as a relationship on #{klass}" end |