Class: Expansion::Value

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/expansion/value.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



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