Class: Rafflesia::DatasetSourceSnapshotIngestData

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#databaseObject

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_runObject

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_readyObject

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_reusedObject

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_countObject

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

#refObject

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

#relationObject

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

#releaseObject

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_countObject

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

#sourceObject

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

#versionObject

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