Class: Expansion::Value
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Expansion::Value
- Defined in:
- lib/expansion/value.rb
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
11 12 13 |
# File 'lib/expansion/value.rb', line 11 def value self.send("value_#{self.attribute.value_type}") end |
#value=(x) ⇒ Object
15 16 17 |
# File 'lib/expansion/value.rb', line 15 def value= x self.send("value_#{self.attribute.value_type}=", x) end |