Exception: JSONAPI::Sideposting::ValidationError
- Defined in:
- lib/json_api/sideposting/processor.rb
Instance Attribute Summary collapse
-
#included_index ⇒ Object
readonly
Returns the value of attribute included_index.
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record:, included_index:) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(record:, included_index:) ⇒ ValidationError
Returns a new instance of ValidationError.
10 11 12 13 14 |
# File 'lib/json_api/sideposting/processor.rb', line 10 def initialize(record:, included_index:) @record = record @included_index = included_index super("Validation failed for included resource at index #{included_index}") end |
Instance Attribute Details
#included_index ⇒ Object (readonly)
Returns the value of attribute included_index.
8 9 10 |
# File 'lib/json_api/sideposting/processor.rb', line 8 def included_index @included_index end |
#record ⇒ Object (readonly)
Returns the value of attribute record.
8 9 10 |
# File 'lib/json_api/sideposting/processor.rb', line 8 def record @record end |