Class: Rafflesia::DatasetSnapshotCatalogRecord

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb

Constant Summary collapse

HASH_ATTRS =
{
  created_at: :created_at,
  dataset_id: :dataset_id,
  dataset_name: :dataset_name,
  digest: :digest,
  metadata: :metadata,
  object_manifest_object_id: :object_manifest_object_id,
  publication_state: :publication_state,
  published_at: :published_at,
  row_count: :row_count,
  snapshot_id: :snapshot_id,
  snapshot_kind: :snapshot_kind,
  source_uri: :source_uri,
  table_artifact_count: :table_artifact_count,
  version: :version
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DatasetSnapshotCatalogRecord

Returns a new instance of DatasetSnapshotCatalogRecord.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 41

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @created_at = hash[:created_at]
  @dataset_id = hash[:dataset_id]
  @dataset_name = hash[:dataset_name]
  @digest = hash[:digest]
  @metadata = hash[:metadata] || {}
  @object_manifest_object_id = hash[:object_manifest_object_id]
  @publication_state = hash[:publication_state]
  @published_at = hash[:published_at]
  @row_count = hash[:row_count]
  @snapshot_id = hash[:snapshot_id]
  @snapshot_kind = hash[:snapshot_kind]
  @source_uri = hash[:source_uri]
  @table_artifact_count = hash[:table_artifact_count]
  @version = hash[:version]
end

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



25
26
27
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25

def created_at
  @created_at
end

#dataset_idObject

Returns the value of attribute dataset_id.



25
26
27
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25

def dataset_id
  @dataset_id
end

#dataset_nameObject

Returns the value of attribute dataset_name.



25
26
27
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25

def dataset_name
  @dataset_name
end

#digestObject

Returns the value of attribute digest.



25
26
27
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25

def digest
  @digest
end

#metadataObject

Returns the value of attribute metadata.



25
26
27
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25

def 
  @metadata
end

#object_manifest_object_idObject

Returns the value of attribute object_manifest_object_id.



25
26
27
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25

def object_manifest_object_id
  @object_manifest_object_id
end

#publication_stateObject

Returns the value of attribute publication_state.



25
26
27
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25

def publication_state
  @publication_state
end

#published_atObject

Returns the value of attribute published_at.



25
26
27
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25

def published_at
  @published_at
end

#row_countObject

Returns the value of attribute row_count.



25
26
27
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25

def row_count
  @row_count
end

#snapshot_idObject

Returns the value of attribute snapshot_id.



25
26
27
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25

def snapshot_id
  @snapshot_id
end

#snapshot_kindObject

Returns the value of attribute snapshot_kind.



25
26
27
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25

def snapshot_kind
  @snapshot_kind
end

#source_uriObject

Returns the value of attribute source_uri.



25
26
27
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25

def source_uri
  @source_uri
end

#table_artifact_countObject

Returns the value of attribute table_artifact_count.



25
26
27
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25

def table_artifact_count
  @table_artifact_count
end

#versionObject

Returns the value of attribute version.



25
26
27
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25

def version
  @version
end