Class: Documents::FieldValue
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Documents::FieldValue
show all
- Includes:
- HasAttributes
- Defined in:
- app/models/documents/field_value.rb
Direct Known Subclasses
CheckboxValue, DataValue, DateValue, DecimalValue, FileValue, LocationValue, MultiSelectValue, NumberValue, SelectValue, SignatureValue, TextValue, TimeValue
Instance Method Summary
collapse
Instance Method Details
#has_value? ⇒ Boolean
11
|
# File 'app/models/documents/field_value.rb', line 11
def has_value? = value.present?
|
#path ⇒ Object
13
|
# File 'app/models/documents/field_value.rb', line 13
def path = [section.path, name.to_s].join("/")
|
#to_s ⇒ Object
15
|
# File 'app/models/documents/field_value.rb', line 15
def to_s = value.to_s
|