Class: Rafflesia::DatasetOntologyBinding
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetOntologyBinding
- Defined in:
- lib/rafflesia/ontology/dataset_ontology_binding.rb
Constant Summary collapse
- HASH_ATTRS =
{ conformance_status: :conformance_status, dataset_name: :dataset_name, dataset_relation: :dataset_relation, dataset_relation_digest: :dataset_relation_digest, dataset_release_id: :dataset_release_id, dataset_repository_id: :dataset_repository_id, dataset_version: :dataset_version, id: :id, is_queryable: :is_queryable, object: :object, observed_schema_hash: :observed_schema_hash, ontology_digest: :ontology_digest, ontology_relation: :ontology_relation, ontology_release_id: :ontology_release_id, ontology_repository_id: :ontology_repository_id, ontology_schema_hash: :ontology_schema_hash, ontology_version: :ontology_version, table_artifacts: :table_artifacts }.freeze
Instance Attribute Summary collapse
-
#conformance_status ⇒ Object
Returns the value of attribute conformance_status.
-
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
-
#dataset_relation ⇒ Object
Returns the value of attribute dataset_relation.
-
#dataset_relation_digest ⇒ Object
Returns the value of attribute dataset_relation_digest.
-
#dataset_release_id ⇒ Object
Returns the value of attribute dataset_release_id.
-
#dataset_repository_id ⇒ Object
Returns the value of attribute dataset_repository_id.
-
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_queryable ⇒ Object
Returns the value of attribute is_queryable.
-
#object ⇒ Object
Returns the value of attribute object.
-
#observed_schema_hash ⇒ Object
Returns the value of attribute observed_schema_hash.
-
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
-
#ontology_relation ⇒ Object
Returns the value of attribute ontology_relation.
-
#ontology_release_id ⇒ Object
Returns the value of attribute ontology_release_id.
-
#ontology_repository_id ⇒ Object
Returns the value of attribute ontology_repository_id.
-
#ontology_schema_hash ⇒ Object
Returns the value of attribute ontology_schema_hash.
-
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
-
#table_artifacts ⇒ Object
Returns the value of attribute table_artifacts.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetOntologyBinding
constructor
A new instance of DatasetOntologyBinding.
Constructor Details
#initialize(json) ⇒ DatasetOntologyBinding
Returns a new instance of DatasetOntologyBinding.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 49 def initialize(json) super() hash = self.class.normalize(json) @conformance_status = hash[:conformance_status] @dataset_name = hash[:dataset_name] @dataset_relation = hash[:dataset_relation] @dataset_relation_digest = hash[:dataset_relation_digest] @dataset_release_id = hash[:dataset_release_id] @dataset_repository_id = hash[:dataset_repository_id] @dataset_version = hash[:dataset_version] @id = hash[:id] @is_queryable = hash[:is_queryable] @object = hash[:object] @observed_schema_hash = hash[:observed_schema_hash] @ontology_digest = hash[:ontology_digest] @ontology_relation = hash[:ontology_relation] @ontology_release_id = hash[:ontology_release_id] @ontology_repository_id = hash[:ontology_repository_id] @ontology_schema_hash = hash[:ontology_schema_hash] @ontology_version = hash[:ontology_version] @table_artifacts = (hash[:table_artifacts] || []).map { |item| item ? Rafflesia::DatasetBindingArtifact.new(item) : nil } end |
Instance Attribute Details
#conformance_status ⇒ Object
Returns the value of attribute conformance_status.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def conformance_status @conformance_status end |
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def dataset_name @dataset_name end |
#dataset_relation ⇒ Object
Returns the value of attribute dataset_relation.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def dataset_relation @dataset_relation end |
#dataset_relation_digest ⇒ Object
Returns the value of attribute dataset_relation_digest.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def dataset_relation_digest @dataset_relation_digest end |
#dataset_release_id ⇒ Object
Returns the value of attribute dataset_release_id.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def dataset_release_id @dataset_release_id end |
#dataset_repository_id ⇒ Object
Returns the value of attribute dataset_repository_id.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def dataset_repository_id @dataset_repository_id end |
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def dataset_version @dataset_version end |
#id ⇒ Object
Returns the value of attribute id.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def id @id end |
#is_queryable ⇒ Object
Returns the value of attribute is_queryable.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def is_queryable @is_queryable end |
#object ⇒ Object
Returns the value of attribute object.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def object @object end |
#observed_schema_hash ⇒ Object
Returns the value of attribute observed_schema_hash.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def observed_schema_hash @observed_schema_hash end |
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def ontology_digest @ontology_digest end |
#ontology_relation ⇒ Object
Returns the value of attribute ontology_relation.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def ontology_relation @ontology_relation end |
#ontology_release_id ⇒ Object
Returns the value of attribute ontology_release_id.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def ontology_release_id @ontology_release_id end |
#ontology_repository_id ⇒ Object
Returns the value of attribute ontology_repository_id.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def ontology_repository_id @ontology_repository_id end |
#ontology_schema_hash ⇒ Object
Returns the value of attribute ontology_schema_hash.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def ontology_schema_hash @ontology_schema_hash end |
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def ontology_version @ontology_version end |
#table_artifacts ⇒ Object
Returns the value of attribute table_artifacts.
29 30 31 |
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29 def table_artifacts @table_artifacts end |