Class: I18n::PostgresJson::KeyValue::Store
- Inherits:
-
Object
- Object
- I18n::PostgresJson::KeyValue::Store
- Defined in:
- lib/i18n/postgres_json/key_value/store.rb
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
5 6 7 |
# File 'lib/i18n/postgres_json/key_value/store.rb', line 5 def [](key) record[escape(key)] end |
#[]=(key, value) ⇒ Object
9 10 11 |
# File 'lib/i18n/postgres_json/key_value/store.rb', line 9 def []=(key, value) record[escape(key)] = value end |
#keys ⇒ Object
13 14 15 |
# File 'lib/i18n/postgres_json/key_value/store.rb', line 13 def keys record.keys end |