Method: JSONAPI::Exceptions::InvalidRelationship#initialize
- Defined in:
- lib/jsonapi/exceptions.rb
#initialize(type, relationship_name, error_object_overrides = {}) ⇒ InvalidRelationship
Returns a new instance of InvalidRelationship.
333 334 335 336 337 |
# File 'lib/jsonapi/exceptions.rb', line 333 def initialize(type, relationship_name, error_object_overrides = {}) @relationship_name = relationship_name @type = type super(error_object_overrides) end |