Class: BiologicalRelationshipType

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

Overview

A biological relationship type is…

@todo

Defined Under Namespace

Classes: BiologicalRelationshipObjectType, BiologicalRelationshipSubjectType

Instance Attribute Summary collapse

Method Summary

Methods included from Housekeeping

#has_polymorphic_relationship?

Methods inherited from ApplicationRecord

transaction_with_retry

Instance Attribute Details

#biological_property_idInteger

TODO:

Returns:

  • (Integer)


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

class BiologicalRelationshipType < ApplicationRecord
  include Housekeeping
  include Shared::IsData

  belongs_to :biological_property, inverse_of: :biological_relationship_types
  belongs_to :biological_relationship, inverse_of: :biological_relationship_types

  validates_presence_of :type
  validates :biological_property, presence: true
  validates :biological_relationship, presence: true
end

#biological_relationship_idInteger

TODO:

Returns:

  • (Integer)


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

class BiologicalRelationshipType < ApplicationRecord
  include Housekeeping
  include Shared::IsData

  belongs_to :biological_property, inverse_of: :biological_relationship_types
  belongs_to :biological_relationship, inverse_of: :biological_relationship_types

  validates_presence_of :type
  validates :biological_property, presence: true
  validates :biological_relationship, presence: true
end

#project_idInteger

the project ID

Returns:

  • (Integer)


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

class BiologicalRelationshipType < ApplicationRecord
  include Housekeeping
  include Shared::IsData

  belongs_to :biological_property, inverse_of: :biological_relationship_types
  belongs_to :biological_relationship, inverse_of: :biological_relationship_types

  validates_presence_of :type
  validates :biological_property, presence: true
  validates :biological_relationship, presence: true
end

#typeString

TODO:

Returns:

  • (String)


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

class BiologicalRelationshipType < ApplicationRecord
  include Housekeeping
  include Shared::IsData

  belongs_to :biological_property, inverse_of: :biological_relationship_types
  belongs_to :biological_relationship, inverse_of: :biological_relationship_types

  validates_presence_of :type
  validates :biological_property, presence: true
  validates :biological_relationship, presence: true
end