Class: Rafflesia::DatabaseJoinCandidateMatrixData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatabaseJoinCandidateMatrixData
- Defined in:
- lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ cell_count: :cell_count, complete_count: :complete_count, dataset_name: :dataset_name, dataset_version: :dataset_version, evidence_digest: :evidence_digest, id: :id, is_complete: :is_complete, is_resumable: :is_resumable, manifest_object_ref: :manifest_object_ref, matrix_table_object_ref: :matrix_table_object_ref, object: :object, ontology_digest: :ontology_digest, ontology_version: :ontology_version, rows: :rows, unavailable_count: :unavailable_count }.freeze
Instance Attribute Summary collapse
-
#cell_count ⇒ Object
Returns the value of attribute cell_count.
-
#complete_count ⇒ Object
Returns the value of attribute complete_count.
-
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
-
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
-
#evidence_digest ⇒ Object
Returns the value of attribute evidence_digest.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_complete ⇒ Object
Returns the value of attribute is_complete.
-
#is_resumable ⇒ Object
Returns the value of attribute is_resumable.
-
#manifest_object_ref ⇒ Object
Returns the value of attribute manifest_object_ref.
-
#matrix_table_object_ref ⇒ Object
Returns the value of attribute matrix_table_object_ref.
-
#object ⇒ Object
Returns the value of attribute object.
-
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
-
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
-
#rows ⇒ Object
Returns the value of attribute rows.
-
#unavailable_count ⇒ Object
Returns the value of attribute unavailable_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatabaseJoinCandidateMatrixData
constructor
A new instance of DatabaseJoinCandidateMatrixData.
Constructor Details
#initialize(json) ⇒ DatabaseJoinCandidateMatrixData
Returns a new instance of DatabaseJoinCandidateMatrixData.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 43 def initialize(json) super() hash = self.class.normalize(json) @cell_count = hash[:cell_count] @complete_count = hash[:complete_count] @dataset_name = hash[:dataset_name] @dataset_version = hash[:dataset_version] @evidence_digest = hash[:evidence_digest] @id = hash[:id] @is_complete = hash[:is_complete] @is_resumable = hash[:is_resumable] @manifest_object_ref = hash[:manifest_object_ref] ? Rafflesia::ObjectRef.new(hash[:manifest_object_ref]) : nil @matrix_table_object_ref = hash[:matrix_table_object_ref] ? Rafflesia::ObjectRef.new(hash[:matrix_table_object_ref]) : nil @object = hash[:object] @ontology_digest = hash[:ontology_digest] @ontology_version = hash[:ontology_version] @rows = (hash[:rows] || []).map { |item| item ? Rafflesia::DatabaseJoinCandidateMatrixRow.new(item) : nil } @unavailable_count = hash[:unavailable_count] end |
Instance Attribute Details
#cell_count ⇒ Object
Returns the value of attribute cell_count.
26 27 28 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 26 def cell_count @cell_count end |
#complete_count ⇒ Object
Returns the value of attribute complete_count.
26 27 28 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 26 def complete_count @complete_count end |
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
26 27 28 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 26 def dataset_name @dataset_name end |
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
26 27 28 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 26 def dataset_version @dataset_version end |
#evidence_digest ⇒ Object
Returns the value of attribute evidence_digest.
26 27 28 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 26 def evidence_digest @evidence_digest end |
#id ⇒ Object
Returns the value of attribute id.
26 27 28 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 26 def id @id end |
#is_complete ⇒ Object
Returns the value of attribute is_complete.
26 27 28 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 26 def is_complete @is_complete end |
#is_resumable ⇒ Object
Returns the value of attribute is_resumable.
26 27 28 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 26 def is_resumable @is_resumable end |
#manifest_object_ref ⇒ Object
Returns the value of attribute manifest_object_ref.
26 27 28 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 26 def manifest_object_ref @manifest_object_ref end |
#matrix_table_object_ref ⇒ Object
Returns the value of attribute matrix_table_object_ref.
26 27 28 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 26 def matrix_table_object_ref @matrix_table_object_ref end |
#object ⇒ Object
Returns the value of attribute object.
26 27 28 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 26 def object @object end |
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
26 27 28 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 26 def ontology_digest @ontology_digest end |
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
26 27 28 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 26 def ontology_version @ontology_version end |
#rows ⇒ Object
Returns the value of attribute rows.
26 27 28 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 26 def rows @rows end |
#unavailable_count ⇒ Object
Returns the value of attribute unavailable_count.
26 27 28 |
# File 'lib/rafflesia/database_join_candidate_matrices/database_join_candidate_matrix_data.rb', line 26 def unavailable_count @unavailable_count end |