Class: ConfidenceLevel

Inherits:
ControlledVocabularyTerm show all
Defined in:
app/models/confidence_level.rb

Constant Summary

Constant Summary

Constants inherited from ControlledVocabularyTerm

ControlledVocabularyTerm::ALTERNATE_VALUES_FOR

Instance Attribute Summary

Attributes inherited from ControlledVocabularyTerm

#definition, #name, #project_id, #type, #uri, #uri_relation

Instance Method Summary (collapse)

Methods inherited from ControlledVocabularyTerm

find_for_autocomplete, generate_download, #uri_relation_is_a_skos_relation

Methods included from Housekeeping

#has_polymorphic_relationship?

Instance Method Details

- (Object) confidenced_object_class_names



11
12
13
# File 'app/models/confidence_level.rb', line 11

def confidenced_object_class_names
  Confidence.where(confidence_level: self).pluck(:confidence_object_type)
end

- (Object) confidenced_objects



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

def confidenced_objects
  self.confidences.collect{|c| c.confidence_object}
end