Class: Descriptor::Continuous

Inherits:
Descriptor show all
Defined in:
app/models/descriptor/continuous.rb

Constant Summary

Constants inherited from Descriptor

ALTERNATE_VALUES_FOR

Constants included from SoftValidation

SoftValidation::ANCESTORS_WITH_SOFT_VALIDATIONS

Instance Method Summary collapse

Methods inherited from Descriptor

#gene?, human_name, #presence_absence?, #qualitative?, #short_name_is_shorter, #sv_short_name_is_short, #type_is_subclassed

Methods included from SoftValidation

#clear_soft_validations, #fix_soft_validations, #soft_fixed?, #soft_valid?, #soft_validate, #soft_validated?, #soft_validations

Methods included from Housekeeping

#has_polymorphic_relationship?

Methods inherited from ApplicationRecord

transaction_with_retry

Instance Method Details

#unitObject



7
8
9
# File 'app/models/descriptor/continuous.rb', line 7

def unit
  ::RubyUnits::Unit.new(['1', default_unit].compact.join(' '))
end