Class: BiologicalAssociationsGraph
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- BiologicalAssociationsGraph
- Includes:
- Housekeeping, Shared::Citations, Shared::Identifiers, Shared::IsData, Shared::Notes, Shared::Tags
- 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
-
#graph ⇒ Json
A layout for the graph.
-
#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::Identifiers
#dwc_occurrence_id, #identified?, #next_by_identifier, #previous_by_identifier, #reject_identifiers, #uri, #uuid
Methods included from Shared::Tags
#reject_tags, #tag_with, #tagged?, #tagged_with?
Methods included from Shared::Notes
#concatenated_notes_string, #reject_notes
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
#graph ⇒ Json
Returns a layout for the graph.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/models/biological_associations_graph.rb', line 15 class BiologicalAssociationsGraph < ApplicationRecord include Housekeeping include Shared::Citations include Shared::Notes include Shared::Tags include Shared::Identifiers include Shared::IsData has_many :biological_associations_biological_associations_graphs, inverse_of: :biological_associations_graph, dependent: :delete_all has_many :biological_associations, through: :biological_associations_biological_associations_graphs accepts_nested_attributes_for :biological_associations_biological_associations_graphs, allow_destroy: true end |
#name ⇒ String
Returns the name of the graph.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/models/biological_associations_graph.rb', line 15 class BiologicalAssociationsGraph < ApplicationRecord include Housekeeping include Shared::Citations include Shared::Notes include Shared::Tags include Shared::Identifiers include Shared::IsData has_many :biological_associations_biological_associations_graphs, inverse_of: :biological_associations_graph, dependent: :delete_all has_many :biological_associations, through: :biological_associations_biological_associations_graphs accepts_nested_attributes_for :biological_associations_biological_associations_graphs, allow_destroy: true end |
#project_id ⇒ Integer
the project ID
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/models/biological_associations_graph.rb', line 15 class BiologicalAssociationsGraph < ApplicationRecord include Housekeeping include Shared::Citations include Shared::Notes include Shared::Tags include Shared::Identifiers include Shared::IsData has_many :biological_associations_biological_associations_graphs, inverse_of: :biological_associations_graph, dependent: :delete_all has_many :biological_associations, through: :biological_associations_biological_associations_graphs accepts_nested_attributes_for :biological_associations_biological_associations_graphs, allow_destroy: true end |