Class: Rafflesia::DatabaseJoinCoverageData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatabaseJoinCoverageData
- Defined in:
- lib/rafflesia/database_join_coverage/database_join_coverage_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ cardinality_consistent_count: :cardinality_consistent_count, cardinality_contradicted_count: :cardinality_contradicted_count, data: :data, from_database: :from_database, from_release: :from_release, id: :id, 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, to_database: :to_database, to_release: :to_release, url: :url }.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.
-
#data ⇒ Object
Returns the value of attribute data.
-
#from_database ⇒ Object
Returns the value of attribute from_database.
-
#from_release ⇒ Object
Returns the value of attribute from_release.
-
#id ⇒ Object
Returns the value of attribute id.
-
#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.
-
#to_database ⇒ Object
Returns the value of attribute to_database.
-
#to_release ⇒ Object
Returns the value of attribute to_release.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatabaseJoinCoverageData
constructor
A new instance of DatabaseJoinCoverageData.
Constructor Details
#initialize(json) ⇒ DatabaseJoinCoverageData
Returns a new instance of DatabaseJoinCoverageData.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 45 def initialize(json) super() hash = self.class.normalize(json) @cardinality_consistent_count = hash[:cardinality_consistent_count] @cardinality_contradicted_count = hash[:cardinality_contradicted_count] @data = (hash[:data] || []).map { |item| item ? Rafflesia::DatabaseJoinCoverageRow.new(item) : nil } @from_database = hash[:from_database] @from_release = hash[:from_release] @id = hash[:id] @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] @to_database = hash[:to_database] @to_release = hash[:to_release] @url = hash[:url] end |
Instance Attribute Details
#cardinality_consistent_count ⇒ Object
Returns the value of attribute cardinality_consistent_count.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def cardinality_consistent_count @cardinality_consistent_count end |
#cardinality_contradicted_count ⇒ Object
Returns the value of attribute cardinality_contradicted_count.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def cardinality_contradicted_count @cardinality_contradicted_count end |
#data ⇒ Object
Returns the value of attribute data.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def data @data end |
#from_database ⇒ Object
Returns the value of attribute from_database.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def from_database @from_database end |
#from_release ⇒ Object
Returns the value of attribute from_release.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def from_release @from_release end |
#id ⇒ Object
Returns the value of attribute id.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def id @id end |
#no_overlap_observed_count ⇒ Object
Returns the value of attribute no_overlap_observed_count.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def no_overlap_observed_count @no_overlap_observed_count end |
#object ⇒ Object
Returns the value of attribute object.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def object @object end |
#observed_count ⇒ Object
Returns the value of attribute observed_count.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def observed_count @observed_count end |
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def ontology_digest @ontology_digest end |
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def ontology_version @ontology_version end |
#overlap_observed_count ⇒ Object
Returns the value of attribute overlap_observed_count.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def overlap_observed_count @overlap_observed_count end |
#relationship_variant_count ⇒ Object
Returns the value of attribute relationship_variant_count.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def relationship_variant_count @relationship_variant_count end |
#to_database ⇒ Object
Returns the value of attribute to_database.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def to_database @to_database end |
#to_release ⇒ Object
Returns the value of attribute to_release.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def to_release @to_release end |
#url ⇒ Object
Returns the value of attribute url.
27 28 29 |
# File 'lib/rafflesia/database_join_coverage/database_join_coverage_data.rb', line 27 def url @url end |