Sha256: 50b80ffb6ed4c4cc8d87ffd8d1af4d07846d74b196e6855f17e0d30caf23b1e4

Contents?: true

Size: 581 Bytes

Versions: 22

Compression:

Stored size: 581 Bytes

Contents

module InventoryRefresh
  class ApplicationRecordReference
    attr_reader :base_class_name, :id

    # 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
    #
    # @param base_class_name [String] A base class of the ApplicationRecord object
    # @param id [Bigint] Primary key value of the ApplicationRecord object
    def initialize(base_class_name, id)
      @base_class_name = base_class_name
      @id              = id
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
inventory_refresh-2.2.0 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-2.1.1 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-2.1.0 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-2.0.0 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-1.1.0 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-1.0.0 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-0.2.3 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-0.2.2 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-0.3.6 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-0.3.5 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-0.3.4 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-0.3.3 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-0.2.1 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-0.3.2 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-0.3.1 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-0.3.0 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-0.2.0 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-0.1.3 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-0.1.2 lib/inventory_refresh/application_record_reference.rb
inventory_refresh-0.1.1 lib/inventory_refresh/application_record_reference.rb