Class: ObservationMatrixRowItem::TaggedRowItem

Inherits:
ObservationMatrixRowItem show all
Defined in:
app/models/observation_matrix_row_item/tagged_row_item.rb

Constant Summary

Constant Summary

Constants inherited from ObservationMatrixRowItem

ALL_STI_ATTRIBUTES

Instance Attribute Summary

Attributes inherited from ObservationMatrixRowItem

#cached_observation_matrix_row_item_id, #collection_object_id, #observation_matrix_id, #otu_id, #position

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from ObservationMatrixRowItem

batch_create, batch_create_from_pinboard, batch_create_from_tags, #cleanup_matrix_rows, #cleanup_single_matrix_row, create_for, create_for_pinboard_items, create_for_tags, #decrement_matrix_row_reference_count, human_name, #increment_matrix_row_reference_count, #object_is?, #other_subclass_attributes_not_set, #type_is_subclassed, #update_matrix_rows, #update_single_matrix_row

Methods included from Housekeeping

#has_polymorphic_relationship?

Methods included from ActiverecordUtilities

#trim_attributes

Class Method Details

+ (Object) subclass_attributes



8
9
10
# File 'app/models/observation_matrix_row_item/tagged_row_item.rb', line 8

def self.subclass_attributes
  [:controlled_vocabulary_term_id]
end

Instance Method Details

- (Object) collection_objects



16
17
18
# File 'app/models/observation_matrix_row_item/tagged_row_item.rb', line 16

def collection_objects
  Tag.where(keyword: controlled_vocabulary_term, tag_object_type: 'CollectionObject').map(&:tag_object)
end

- (Boolean) is_dynamic?

Returns:

  • (Boolean)


24
25
26
# File 'app/models/observation_matrix_row_item/tagged_row_item.rb', line 24

def is_dynamic?
  true
end

- (Object) matrix_row_item_object



20
21
22
# File 'app/models/observation_matrix_row_item/tagged_row_item.rb', line 20

def matrix_row_item_object
  controlled_vocabulary_term 
end

- (Object) otus



12
13
14
# File 'app/models/observation_matrix_row_item/tagged_row_item.rb', line 12

def otus
  Tag.where(keyword: controlled_vocabulary_term, tag_object_type: 'Otu').map(&:tag_object)
end