Class: InventoryRefresh::ApplicationRecordReference
- Inherits:
-
Object
- Object
- InventoryRefresh::ApplicationRecordReference
- Defined in:
- lib/inventory_refresh/application_record_reference.rb
Instance Attribute Summary collapse
-
#base_class_name ⇒ Object
readonly
Returns the value of attribute base_class_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(base_class_name, id) ⇒ ApplicationRecordReference
constructor
ApplicationRecord is very bloaty in memory, so this class server for storing base_class and primary key of the ApplicationRecord, which is just enough for filling up relationships.
Constructor Details
#initialize(base_class_name, id) ⇒ ApplicationRecordReference
ApplicationRecord is very bloaty in memory, so this class server for storing base_class and primary key of the ApplicationRecord, which is just enough for filling up relationships
10 11 12 13 |
# File 'lib/inventory_refresh/application_record_reference.rb', line 10 def initialize(base_class_name, id) @base_class_name = base_class_name @id = id end |
Instance Attribute Details
#base_class_name ⇒ Object (readonly)
Returns the value of attribute base_class_name.
3 4 5 |
# File 'lib/inventory_refresh/application_record_reference.rb', line 3 def base_class_name @base_class_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/inventory_refresh/application_record_reference.rb', line 3 def id @id end |