Class: BiocurationClassification

Inherits:
ApplicationRecord show all
Includes:
Housekeeping, Shared::IsData
Defined in:
app/models/biocuration_classification.rb

Overview

A biocuration classification is…

@todo

Instance Attribute Summary (collapse)

Method Summary

Methods included from Housekeeping

#has_polymorphic_relationship?

Instance Attribute Details

- (Integer) biocuration_class_id

the biocuration class ID

Returns:

  • (Integer)


20
21
22
23
24
25
26
27
28
29
30
31
# File 'app/models/biocuration_classification.rb', line 20

class BiocurationClassification < ApplicationRecord
  acts_as_list scope: [:biological_collection_object]

  include Housekeeping
  include Shared::IsData

  belongs_to :biocuration_class, inverse_of: :biocuration_classifications
  belongs_to :biological_collection_object, class_name: 'CollectionObject::BiologicalCollectionObject', inverse_of: :biocuration_classifications

  validates_presence_of :biocuration_class, :biological_collection_object

end

- (Integer) biological_collection_object_id

the biological collection object ID

Returns:

  • (Integer)


20
21
22
23
24
25
26
27
28
29
30
31
# File 'app/models/biocuration_classification.rb', line 20

class BiocurationClassification < ApplicationRecord
  acts_as_list scope: [:biological_collection_object]

  include Housekeeping
  include Shared::IsData

  belongs_to :biocuration_class, inverse_of: :biocuration_classifications
  belongs_to :biological_collection_object, class_name: 'CollectionObject::BiologicalCollectionObject', inverse_of: :biocuration_classifications

  validates_presence_of :biocuration_class, :biological_collection_object

end

- (Integer) position

TODO:

Returns:

  • (Integer)


20
21
22
23
24
25
26
27
28
29
30
31
# File 'app/models/biocuration_classification.rb', line 20

class BiocurationClassification < ApplicationRecord
  acts_as_list scope: [:biological_collection_object]

  include Housekeeping
  include Shared::IsData

  belongs_to :biocuration_class, inverse_of: :biocuration_classifications
  belongs_to :biological_collection_object, class_name: 'CollectionObject::BiologicalCollectionObject', inverse_of: :biocuration_classifications

  validates_presence_of :biocuration_class, :biological_collection_object

end

- (Integer) project_id

the project ID

Returns:

  • (Integer)


20
21
22
23
24
25
26
27
28
29
30
31
# File 'app/models/biocuration_classification.rb', line 20

class BiocurationClassification < ApplicationRecord
  acts_as_list scope: [:biological_collection_object]

  include Housekeeping
  include Shared::IsData

  belongs_to :biocuration_class, inverse_of: :biocuration_classifications
  belongs_to :biological_collection_object, class_name: 'CollectionObject::BiologicalCollectionObject', inverse_of: :biocuration_classifications

  validates_presence_of :biocuration_class, :biological_collection_object

end