Class: DenormalizeFields::RelatedRecordInvalid
- Inherits:
-
ActiveRecord::RecordInvalid
- Object
- ActiveRecord::RecordInvalid
- DenormalizeFields::RelatedRecordInvalid
- Defined in:
- lib/denormalize_fields.rb
Instance Attribute Summary collapse
-
#mapping ⇒ Object
Returns the value of attribute mapping.
-
#owner ⇒ Object
Returns the value of attribute owner.
Instance Method Summary collapse
-
#initialize(record:, owner:, mapping:) ⇒ RelatedRecordInvalid
constructor
A new instance of RelatedRecordInvalid.
Constructor Details
#initialize(record:, owner:, mapping:) ⇒ RelatedRecordInvalid
Returns a new instance of RelatedRecordInvalid.
12 13 14 15 16 |
# File 'lib/denormalize_fields.rb', line 12 def initialize(record:, owner:, mapping:) super(record) self.owner = owner self.mapping = mapping end |
Instance Attribute Details
#mapping ⇒ Object
Returns the value of attribute mapping.
10 11 12 |
# File 'lib/denormalize_fields.rb', line 10 def mapping @mapping end |
#owner ⇒ Object
Returns the value of attribute owner.
10 11 12 |
# File 'lib/denormalize_fields.rb', line 10 def owner @owner end |