Class: AssociateJsonb::WithStoreAttribute::StoreColumnAttributeTracker

Inherits:
Module
  • Object
show all
Includes:
Mutex_m
Defined in:
lib/associate_jsonb/with_store_attribute.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#add_name(name, store, key) ⇒ Object



15
16
17
18
# File 'lib/associate_jsonb/with_store_attribute.rb', line 15

def add_name(name, store, key)
  @names_list ||= {}
  @names_list[name.to_s.freeze] = { store: store, key: key }
end

#has_name?(name) ⇒ Boolean

Returns:



20
21
22
# File 'lib/associate_jsonb/with_store_attribute.rb', line 20

def has_name?(name)
  names_list.key? name.to_s
end

#names_listObject



11
12
13
# File 'lib/associate_jsonb/with_store_attribute.rb', line 11

def names_list
  @names_list ||= {}
end