Class: Rafflesia::DatabaseJoinCertificationData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatabaseJoinCertificationData
- Defined in:
- lib/rafflesia/database_join_certifications/database_join_certification_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ cardinality_consistent_count: :cardinality_consistent_count, cardinality_contradicted_count: :cardinality_contradicted_count, coverage_table_object_ref: :coverage_table_object_ref, dataset_name: :dataset_name, dataset_version: :dataset_version, evidence_digest: :evidence_digest, from_database: :from_database, from_release: :from_release, from_release_digest: :from_release_digest, id: :id, is_complete: :is_complete, is_resumable: :is_resumable, manifest_object_ref: :manifest_object_ref, no_overlap_observed_count: :no_overlap_observed_count, object: :object, observed_count: :observed_count, ontology_digest: :ontology_digest, ontology_version: :ontology_version, overlap_observed_count: :overlap_observed_count, relationship_variant_count: :relationship_variant_count, rows: :rows, safety: :safety, to_database: :to_database, to_release: :to_release, to_release_digest: :to_release_digest, unavailable_count: :unavailable_count }.freeze
Instance Attribute Summary collapse
-
#cardinality_consistent_count ⇒ Object
Returns the value of attribute cardinality_consistent_count.
-
#cardinality_contradicted_count ⇒ Object
Returns the value of attribute cardinality_contradicted_count.
-
#coverage_table_object_ref ⇒ Object
Returns the value of attribute coverage_table_object_ref.
-
#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.
-
#from_database ⇒ Object
Returns the value of attribute from_database.
-
#from_release ⇒ Object
Returns the value of attribute from_release.
-
#from_release_digest ⇒ Object
Returns the value of attribute from_release_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.
-
#no_overlap_observed_count ⇒ Object
Returns the value of attribute no_overlap_observed_count.
-
#object ⇒ Object
Returns the value of attribute object.
-
#observed_count ⇒ Object
Returns the value of attribute observed_count.
-
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
-
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
-
#overlap_observed_count ⇒ Object
Returns the value of attribute overlap_observed_count.
-
#relationship_variant_count ⇒ Object
Returns the value of attribute relationship_variant_count.
-
#rows ⇒ Object
Returns the value of attribute rows.
-
#safety ⇒ Object
Returns the value of attribute safety.
-
#to_database ⇒ Object
Returns the value of attribute to_database.
-
#to_release ⇒ Object
Returns the value of attribute to_release.
-
#to_release_digest ⇒ Object
Returns the value of attribute to_release_digest.
-
#unavailable_count ⇒ Object
Returns the value of attribute unavailable_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatabaseJoinCertificationData
constructor
A new instance of DatabaseJoinCertificationData.
Constructor Details
#initialize(json) ⇒ DatabaseJoinCertificationData
Returns a new instance of DatabaseJoinCertificationData.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 65 def initialize(json) super() hash = self.class.normalize(json) @cardinality_consistent_count = hash[:cardinality_consistent_count] @cardinality_contradicted_count = hash[:cardinality_contradicted_count] @coverage_table_object_ref = hash[:coverage_table_object_ref] ? Rafflesia::ObjectRef.new(hash[:coverage_table_object_ref]) : nil @dataset_name = hash[:dataset_name] @dataset_version = hash[:dataset_version] @evidence_digest = hash[:evidence_digest] @from_database = hash[:from_database] @from_release = hash[:from_release] @from_release_digest = hash[:from_release_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 @no_overlap_observed_count = hash[:no_overlap_observed_count] @object = hash[:object] @observed_count = hash[:observed_count] @ontology_digest = hash[:ontology_digest] @ontology_version = hash[:ontology_version] @overlap_observed_count = hash[:overlap_observed_count] @relationship_variant_count = hash[:relationship_variant_count] @rows = (hash[:rows] || []).map { |item| item ? Rafflesia::DatabaseJoinCertificationRow.new(item) : nil } @safety = hash[:safety] @to_database = hash[:to_database] @to_release = hash[:to_release] @to_release_digest = hash[:to_release_digest] @unavailable_count = hash[:unavailable_count] end |
Instance Attribute Details
#cardinality_consistent_count ⇒ Object
Returns the value of attribute cardinality_consistent_count.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def cardinality_consistent_count @cardinality_consistent_count end |
#cardinality_contradicted_count ⇒ Object
Returns the value of attribute cardinality_contradicted_count.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def cardinality_contradicted_count @cardinality_contradicted_count end |
#coverage_table_object_ref ⇒ Object
Returns the value of attribute coverage_table_object_ref.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def coverage_table_object_ref @coverage_table_object_ref end |
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def dataset_name @dataset_name end |
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def dataset_version @dataset_version end |
#evidence_digest ⇒ Object
Returns the value of attribute evidence_digest.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def evidence_digest @evidence_digest end |
#from_database ⇒ Object
Returns the value of attribute from_database.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def from_database @from_database end |
#from_release ⇒ Object
Returns the value of attribute from_release.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def from_release @from_release end |
#from_release_digest ⇒ Object
Returns the value of attribute from_release_digest.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def from_release_digest @from_release_digest end |
#id ⇒ Object
Returns the value of attribute id.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def id @id end |
#is_complete ⇒ Object
Returns the value of attribute is_complete.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def is_complete @is_complete end |
#is_resumable ⇒ Object
Returns the value of attribute is_resumable.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def is_resumable @is_resumable end |
#manifest_object_ref ⇒ Object
Returns the value of attribute manifest_object_ref.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def manifest_object_ref @manifest_object_ref end |
#no_overlap_observed_count ⇒ Object
Returns the value of attribute no_overlap_observed_count.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def no_overlap_observed_count @no_overlap_observed_count end |
#object ⇒ Object
Returns the value of attribute object.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def object @object end |
#observed_count ⇒ Object
Returns the value of attribute observed_count.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def observed_count @observed_count end |
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def ontology_digest @ontology_digest end |
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def ontology_version @ontology_version end |
#overlap_observed_count ⇒ Object
Returns the value of attribute overlap_observed_count.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def overlap_observed_count @overlap_observed_count end |
#relationship_variant_count ⇒ Object
Returns the value of attribute relationship_variant_count.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def relationship_variant_count @relationship_variant_count end |
#rows ⇒ Object
Returns the value of attribute rows.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def rows @rows end |
#safety ⇒ Object
Returns the value of attribute safety.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def safety @safety end |
#to_database ⇒ Object
Returns the value of attribute to_database.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def to_database @to_database end |
#to_release ⇒ Object
Returns the value of attribute to_release.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def to_release @to_release end |
#to_release_digest ⇒ Object
Returns the value of attribute to_release_digest.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def to_release_digest @to_release_digest end |
#unavailable_count ⇒ Object
Returns the value of attribute unavailable_count.
37 38 39 |
# File 'lib/rafflesia/database_join_certifications/database_join_certification_data.rb', line 37 def unavailable_count @unavailable_count end |