Exception: JSONAPI::Sideposting::PrimaryValidationError
- Defined in:
- lib/json_api/sideposting/processor.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record) ⇒ PrimaryValidationError
constructor
A new instance of PrimaryValidationError.
Constructor Details
#initialize(record) ⇒ PrimaryValidationError
Returns a new instance of PrimaryValidationError.
20 21 22 23 |
# File 'lib/json_api/sideposting/processor.rb', line 20 def initialize(record) @record = record super("Validation failed for primary resource") end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
18 19 20 |
# File 'lib/json_api/sideposting/processor.rb', line 18 def record @record end |