Exception: JSONAPI::Sideposting::ValidationError

Inherits:
Error
  • Object
show all
Defined in:
lib/json_api/sideposting/processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_indexObject (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

#recordObject (readonly)

Returns the value of attribute record.



8
9
10
# File 'lib/json_api/sideposting/processor.rb', line 8

def record
  @record
end