Class: Fields::TextArea

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

Instance Method Summary collapse

Instance Method Details

#content_value=(value) ⇒ Object



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

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

#export_valueObject



19
20
21
# File 'app/models/iron/fields/text_area.rb', line 19

def export_value
  { type: "text_area", value: value_text }
end

#filled?Boolean

Returns:



9
# File 'app/models/iron/fields/text_area.rb', line 9

def filled? = value_text.present?

#searchable_textObject



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

def searchable_text
  value
end

#valueObject



15
16
17
# File 'app/models/iron/fields/text_area.rb', line 15

def value
  value_text
end