Class: Fields::Number

Inherits:
Field
  • Object
show all
Defined in:
app/models/iron/fields/number.rb

Instance Method Summary collapse

Instance Method Details

#content_value=(value) ⇒ Object



3
4
5
# File 'app/models/iron/fields/number.rb', line 3

def content_value=(value)
  self.value_float = value
end

#export_valueObject



11
12
13
# File 'app/models/iron/fields/number.rb', line 11

def export_value
  { type: "number", value: value_float }
end

#valueObject



7
8
9
# File 'app/models/iron/fields/number.rb', line 7

def value
  value_float
end