Class: BiologicalAssociationsGraph

Inherits:
ApplicationRecord show all
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

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

transaction_with_retry

Instance Attribute Details

#graphJson

Returns a layout for the graph.

Returns:

  • (Json)

    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

#nameString

Returns the name of the graph.

Returns:

  • (String)

    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_idInteger

the project ID

Returns:

  • (Integer)


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