Module: ActiveEntity::Accessor::ClassMethods

Defined in:
lib/active_entity/accessor.rb

Instance Method Summary collapse

Instance Method Details

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



11
12
13
14
# File 'lib/active_entity/accessor.rb', line 11

def attribute(name, options = {})
  defined_attributes[name] = Attribute.new(name, options)
  attr_accessor(name)
end