Class: BiologicalAssociationsGraph
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- BiologicalAssociationsGraph
- Includes:
- Housekeeping, Shared::Citations, Shared::IsData
- Defined in:
- app/models/biological_associations_graph.rb
Overview
A biological associations graph is a collection of BiologicalAssociations. For example, a citable foodweb.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the graph.
-
#project_id ⇒ Integer
the project ID.
Method Summary
Methods included from Shared::IsData
#errors_excepting, #full_error_messages_excepting, #identical, #is_community?, #is_destroyable?, #is_editable?, #is_in_use?, #is_in_users_projects?, #metamorphosize, #similar
Methods included from Shared::Citations
#cited?, #mark_citations_for_destruction, #nomenclature_date, #origin_citation_source_id, #reject_citations, #requires_citation?, #sources_by_topic_id
Methods included from Housekeeping
#has_polymorphic_relationship?
Methods inherited from ApplicationRecord
Instance Attribute Details
#name ⇒ String
Returns the name of the graph.
11 12 13 14 15 16 17 18 19 |
# File 'app/models/biological_associations_graph.rb', line 11 class BiologicalAssociationsGraph < ApplicationRecord include Housekeeping include Shared::Citations include Shared::IsData has_many :biological_associations_biological_associations_graphs, inverse_of: :biological_associations_graph has_many :biological_associations, through: :biological_associations_biological_associations_graphs end |
#project_id ⇒ Integer
the project ID
11 12 13 14 15 16 17 18 19 |
# File 'app/models/biological_associations_graph.rb', line 11 class BiologicalAssociationsGraph < ApplicationRecord include Housekeeping include Shared::Citations include Shared::IsData has_many :biological_associations_biological_associations_graphs, inverse_of: :biological_associations_graph has_many :biological_associations, through: :biological_associations_biological_associations_graphs end |