Class: DerivedCollectionObject

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

Overview

A derived collect object is…

@todo

Instance Attribute Summary (collapse)

Method Summary

Methods included from Housekeeping

#has_polymorphic_relationship?

Instance Attribute Details

- (Integer) collection_object_id

TODO:

Returns:

  • (Integer)


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

class DerivedCollectionObject < ApplicationRecord
  include Housekeeping
  include Shared::IsData

  acts_as_list scope: [:project_id, :collection_object_observation_id]

  belongs_to :collection_object, inverse_of: :derived_collection_objects
  belongs_to :collection_object_observation, inverse_of: :derived_collection_objects

  validates_presence_of :collection_object_id
  validates_presence_of :collection_object_observation_id
  validates_uniqueness_of :collection_object_id, scope: [ :collection_object_observation_id ]

end

- (Integer) collection_object_observation_id

TODO:

Returns:

  • (Integer)


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

class DerivedCollectionObject < ApplicationRecord
  include Housekeeping
  include Shared::IsData

  acts_as_list scope: [:project_id, :collection_object_observation_id]

  belongs_to :collection_object, inverse_of: :derived_collection_objects
  belongs_to :collection_object_observation, inverse_of: :derived_collection_objects

  validates_presence_of :collection_object_id
  validates_presence_of :collection_object_observation_id
  validates_uniqueness_of :collection_object_id, scope: [ :collection_object_observation_id ]

end

- (Integer) position

TODO:

Returns:

  • (Integer)


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

class DerivedCollectionObject < ApplicationRecord
  include Housekeeping
  include Shared::IsData

  acts_as_list scope: [:project_id, :collection_object_observation_id]

  belongs_to :collection_object, inverse_of: :derived_collection_objects
  belongs_to :collection_object_observation, inverse_of: :derived_collection_objects

  validates_presence_of :collection_object_id
  validates_presence_of :collection_object_observation_id
  validates_uniqueness_of :collection_object_id, scope: [ :collection_object_observation_id ]

end

- (Integer) project_id

the project ID

Returns:

  • (Integer)


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

class DerivedCollectionObject < ApplicationRecord
  include Housekeeping
  include Shared::IsData

  acts_as_list scope: [:project_id, :collection_object_observation_id]

  belongs_to :collection_object, inverse_of: :derived_collection_objects
  belongs_to :collection_object_observation, inverse_of: :derived_collection_objects

  validates_presence_of :collection_object_id
  validates_presence_of :collection_object_observation_id
  validates_uniqueness_of :collection_object_id, scope: [ :collection_object_observation_id ]

end