Class: BiologicalRelationshipType

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Housekeeping, Shared::IsData
Defined in:
app/models/biological_relationship_type.rb

Overview

A biological relationship type is…

@todo

Direct Known Subclasses

BiologicalRelationshipObjectType, BiologicalRelationshipSubjectType

Defined Under Namespace

Classes: BiologicalRelationshipObjectType, BiologicalRelationshipSubjectType

Instance Attribute Summary (collapse)

Method Summary

Methods included from Housekeeping

#has_polymorphic_relationship?

Instance Attribute Details

- (Integer) biological_property_id

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 < ActiveRecord::Base
  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

- (Integer) biological_relationship_id

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 < ActiveRecord::Base
  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

- (Integer) project_id

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 < ActiveRecord::Base
  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

- (String) type

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 < ActiveRecord::Base
  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