Class: Documents::FieldValue

Inherits:
ApplicationRecord
  • Object
show all
Includes:
HasAttributes
Defined in:
app/models/documents/field_value.rb

Instance Method Summary collapse

Instance Method Details

#has_value?Boolean

Returns:

  • (Boolean)


11
# File 'app/models/documents/field_value.rb', line 11

def has_value? = value.present?

#pathObject



13
# File 'app/models/documents/field_value.rb', line 13

def path = [section.path, name.to_s].join("/")

#to_sObject



15
# File 'app/models/documents/field_value.rb', line 15

def to_s = value.to_s