Class: ObservationMatrixColumnItem::SingleDescriptor

Inherits:
ObservationMatrixColumnItem show all
Defined in:
app/models/observation_matrix_column_item/single_descriptor.rb

Constant Summary

Constant Summary

Constants inherited from ObservationMatrixColumnItem

ALL_STI_ATTRIBUTES

Instance Attribute Summary

Attributes inherited from ObservationMatrixColumnItem

#controlled_vocabulary_term_id, #descriptor_id, #observation_matrix_id, #position, #type

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from ObservationMatrixColumnItem

batch_create, batch_create_from_pinboard, batch_create_from_tags, #cleanup_matrix_columns, #cleanup_single_matrix_column, create_for, create_for_pinboard_items, create_for_tags, #decrement_matrix_column_reference_count, human_name, #increment_matrix_column_reference_count, #is_dynamic?, #other_subclass_attributes_not_set, #type_is_subclassed, #update_matrix_columns, #update_single_matrix_column

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_column_item/single_descriptor.rb', line 8

def self.subclass_attributes
  [:descriptor_id]
end

Instance Method Details

- (Object) descriptors



12
13
14
# File 'app/models/observation_matrix_column_item/single_descriptor.rb', line 12

def descriptors
  [self.descriptor]
end