Module: EKV::ModelExtensions::ClassMethods

Defined in:
lib/easy_key_value/class_methods.rb

Instance Method Summary collapse

Instance Method Details

#key_value_store_defaults(defaults) ⇒ Object

Sets default values for this model

Parameters:

  • defaults (Hash)

    A hash containing default values



8
9
10
# File 'lib/easy_key_value/class_methods.rb', line 8

def key_value_store_defaults(defaults)
  class_variable_set(:@@ekv_defaults, defaults)
end