Class: DenormalizeFields::RelatedRecordInvalid

Inherits:
ActiveRecord::RecordInvalid
  • Object
show all
Defined in:
lib/denormalize_fields.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#mappingObject

Returns the value of attribute mapping.



10
11
12
# File 'lib/denormalize_fields.rb', line 10

def mapping
  @mapping
end

#ownerObject

Returns the value of attribute owner.



10
11
12
# File 'lib/denormalize_fields.rb', line 10

def owner
  @owner
end