Module: ShadyDB::Attributes::ClassMethods

Defined in:
lib/shadydb/attributes.rb

Instance Method Summary collapse

Instance Method Details

#field(name, options = {}) ⇒ Object



45
46
47
# File 'lib/shadydb/attributes.rb', line 45

def field(name, options = {})
  self.fields[name.to_s] = options[:default]
end