Class: Fields::TextArea
- Inherits:
-
Field
- Object
- Field
- Fields::TextArea
- Includes:
- LengthConstrained
- Defined in:
- app/models/iron/fields/text_area.rb
Instance Method Summary collapse
- #content_value=(value) ⇒ Object
- #export_value ⇒ Object
- #filled? ⇒ Boolean
- #searchable_text ⇒ Object
- #value ⇒ Object
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_value ⇒ Object
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
9 |
# File 'app/models/iron/fields/text_area.rb', line 9 def filled? = value_text.present? |
#searchable_text ⇒ Object
11 12 13 |
# File 'app/models/iron/fields/text_area.rb', line 11 def searchable_text value end |
#value ⇒ Object
15 16 17 |
# File 'app/models/iron/fields/text_area.rb', line 15 def value value_text end |