Class: Fields::TextField

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

Instance Method Summary collapse

Instance Method Details

#content_value=(value) ⇒ Object



5
6
7
# File 'app/models/iron/fields/text_field.rb', line 5

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

#export_valueObject



17
18
19
# File 'app/models/iron/fields/text_field.rb', line 17

def export_value
  { type: "text_field", value: value_string }
end

#searchable_textObject



9
10
11
# File 'app/models/iron/fields/text_field.rb', line 9

def searchable_text
  value
end

#valueObject



13
14
15
# File 'app/models/iron/fields/text_field.rb', line 13

def value
  value_string
end