Class: Rafflesia::DatasetSourceSnapshotIngestData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetSourceSnapshotIngestData
- Defined in:
- lib/rafflesia/datasets/dataset_source_snapshot_ingest_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ database: :database, dry_run: :dry_run, is_query_ready: :is_query_ready, is_reused: :is_reused, record_count: :record_count, ref: :ref, relation: :relation, release: :release, row_count: :row_count, source: :source, version: :version }.freeze
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#is_query_ready ⇒ Object
Returns the value of attribute is_query_ready.
-
#is_reused ⇒ Object
Returns the value of attribute is_reused.
-
#record_count ⇒ Object
Returns the value of attribute record_count.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#release ⇒ Object
Returns the value of attribute release.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#source ⇒ Object
Returns the value of attribute source.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetSourceSnapshotIngestData
constructor
A new instance of DatasetSourceSnapshotIngestData.
Constructor Details
#initialize(json) ⇒ DatasetSourceSnapshotIngestData
Returns a new instance of DatasetSourceSnapshotIngestData.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_data.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @database = hash[:database] @dry_run = hash[:dry_run] @is_query_ready = hash[:is_query_ready] @is_reused = hash[:is_reused] @record_count = hash[:record_count] @ref = hash[:ref] @relation = hash[:relation] @release = hash[:release] @row_count = hash[:row_count] @source = hash[:source] @version = hash[:version] end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
22 23 24 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_data.rb', line 22 def database @database end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
22 23 24 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_data.rb', line 22 def dry_run @dry_run end |
#is_query_ready ⇒ Object
Returns the value of attribute is_query_ready.
22 23 24 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_data.rb', line 22 def is_query_ready @is_query_ready end |
#is_reused ⇒ Object
Returns the value of attribute is_reused.
22 23 24 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_data.rb', line 22 def is_reused @is_reused end |
#record_count ⇒ Object
Returns the value of attribute record_count.
22 23 24 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_data.rb', line 22 def record_count @record_count end |
#ref ⇒ Object
Returns the value of attribute ref.
22 23 24 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_data.rb', line 22 def ref @ref end |
#relation ⇒ Object
Returns the value of attribute relation.
22 23 24 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_data.rb', line 22 def relation @relation end |
#release ⇒ Object
Returns the value of attribute release.
22 23 24 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_data.rb', line 22 def release @release end |
#row_count ⇒ Object
Returns the value of attribute row_count.
22 23 24 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_data.rb', line 22 def row_count @row_count end |
#source ⇒ Object
Returns the value of attribute source.
22 23 24 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_data.rb', line 22 def source @source end |
#version ⇒ Object
Returns the value of attribute version.
22 23 24 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_ingest_data.rb', line 22 def version @version end |