Class: PgOnlineSchemaChange::Store

Inherits:
Object
  • Object
show all
Defined in:
lib/pg_online_schema_change/store.rb

Class Method Summary collapse

Class Method Details

.get(key) ⇒ Object



11
12
13
14
# File 'lib/pg_online_schema_change/store.rb', line 11

def get(key)
  @object ||= {}
  @object[key.to_s] || @object[key.to_sym]
end

.set(key, value) ⇒ Object



16
17
18
19
# File 'lib/pg_online_schema_change/store.rb', line 16

def set(key, value)
  @object ||= {}
  @object[key.to_sym] = value
end