Class: Rafflesia::DatabaseJoinPathMeasurementData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatabaseJoinPathMeasurementData
- Defined in:
- lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ all_edges_cardinality_consistent: :all_edges_cardinality_consistent, cardinality_consistent_edge_count: :cardinality_consistent_edge_count, dataset_name: :dataset_name, dataset_version: :dataset_version, edge_count: :edge_count, evidence_digest: :evidence_digest, id: :id, is_complete: :is_complete, manifest_object_ref: :manifest_object_ref, object: :object, observed_edge_count: :observed_edge_count, ontology_digest: :ontology_digest, ontology_version: :ontology_version, overlap_observed_edge_count: :overlap_observed_edge_count, path_table_object_ref: :path_table_object_ref, rows: :rows, unavailable_edge_count: :unavailable_edge_count }.freeze
Instance Attribute Summary collapse
-
#all_edges_cardinality_consistent ⇒ Object
Returns the value of attribute all_edges_cardinality_consistent.
-
#cardinality_consistent_edge_count ⇒ Object
Returns the value of attribute cardinality_consistent_edge_count.
-
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
-
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
-
#edge_count ⇒ Object
Returns the value of attribute edge_count.
-
#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.
-
#manifest_object_ref ⇒ Object
Returns the value of attribute manifest_object_ref.
-
#object ⇒ Object
Returns the value of attribute object.
-
#observed_edge_count ⇒ Object
Returns the value of attribute observed_edge_count.
-
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
-
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
-
#overlap_observed_edge_count ⇒ Object
Returns the value of attribute overlap_observed_edge_count.
-
#path_table_object_ref ⇒ Object
Returns the value of attribute path_table_object_ref.
-
#rows ⇒ Object
Returns the value of attribute rows.
-
#unavailable_edge_count ⇒ Object
Returns the value of attribute unavailable_edge_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatabaseJoinPathMeasurementData
constructor
A new instance of DatabaseJoinPathMeasurementData.
Constructor Details
#initialize(json) ⇒ DatabaseJoinPathMeasurementData
Returns a new instance of DatabaseJoinPathMeasurementData.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 47 def initialize(json) super() hash = self.class.normalize(json) @all_edges_cardinality_consistent = hash[:all_edges_cardinality_consistent] @cardinality_consistent_edge_count = hash[:cardinality_consistent_edge_count] @dataset_name = hash[:dataset_name] @dataset_version = hash[:dataset_version] @edge_count = hash[:edge_count] @evidence_digest = hash[:evidence_digest] @id = hash[:id] @is_complete = hash[:is_complete] @manifest_object_ref = hash[:manifest_object_ref] ? Rafflesia::ObjectRef.new(hash[:manifest_object_ref]) : nil @object = hash[:object] @observed_edge_count = hash[:observed_edge_count] @ontology_digest = hash[:ontology_digest] @ontology_version = hash[:ontology_version] @overlap_observed_edge_count = hash[:overlap_observed_edge_count] @path_table_object_ref = hash[:path_table_object_ref] ? Rafflesia::ObjectRef.new(hash[:path_table_object_ref]) : nil @rows = (hash[:rows] || []).map { |item| item ? Rafflesia::DatabaseJoinPathMeasurementRow.new(item) : nil } @unavailable_edge_count = hash[:unavailable_edge_count] end |
Instance Attribute Details
#all_edges_cardinality_consistent ⇒ Object
Returns the value of attribute all_edges_cardinality_consistent.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def all_edges_cardinality_consistent @all_edges_cardinality_consistent end |
#cardinality_consistent_edge_count ⇒ Object
Returns the value of attribute cardinality_consistent_edge_count.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def cardinality_consistent_edge_count @cardinality_consistent_edge_count end |
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def dataset_name @dataset_name end |
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def dataset_version @dataset_version end |
#edge_count ⇒ Object
Returns the value of attribute edge_count.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def edge_count @edge_count end |
#evidence_digest ⇒ Object
Returns the value of attribute evidence_digest.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def evidence_digest @evidence_digest end |
#id ⇒ Object
Returns the value of attribute id.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def id @id end |
#is_complete ⇒ Object
Returns the value of attribute is_complete.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def is_complete @is_complete end |
#manifest_object_ref ⇒ Object
Returns the value of attribute manifest_object_ref.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def manifest_object_ref @manifest_object_ref end |
#object ⇒ Object
Returns the value of attribute object.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def object @object end |
#observed_edge_count ⇒ Object
Returns the value of attribute observed_edge_count.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def observed_edge_count @observed_edge_count end |
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def ontology_digest @ontology_digest end |
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def ontology_version @ontology_version end |
#overlap_observed_edge_count ⇒ Object
Returns the value of attribute overlap_observed_edge_count.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def overlap_observed_edge_count @overlap_observed_edge_count end |
#path_table_object_ref ⇒ Object
Returns the value of attribute path_table_object_ref.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def path_table_object_ref @path_table_object_ref end |
#rows ⇒ Object
Returns the value of attribute rows.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def rows @rows end |
#unavailable_edge_count ⇒ Object
Returns the value of attribute unavailable_edge_count.
28 29 30 |
# File 'lib/rafflesia/database_join_path_measurements/database_join_path_measurement_data.rb', line 28 def unavailable_edge_count @unavailable_edge_count end |