Class: Rafflesia::DatasetSnapshotCatalogRecord
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetSnapshotCatalogRecord
- 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
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#dataset_id ⇒ Object
Returns the value of attribute dataset_id.
-
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
-
#digest ⇒ Object
Returns the value of attribute digest.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#object_manifest_object_id ⇒ Object
Returns the value of attribute object_manifest_object_id.
-
#publication_state ⇒ Object
Returns the value of attribute publication_state.
-
#published_at ⇒ Object
Returns the value of attribute published_at.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#snapshot_id ⇒ Object
Returns the value of attribute snapshot_id.
-
#snapshot_kind ⇒ Object
Returns the value of attribute snapshot_kind.
-
#source_uri ⇒ Object
Returns the value of attribute source_uri.
-
#table_artifact_count ⇒ Object
Returns the value of attribute table_artifact_count.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetSnapshotCatalogRecord
constructor
A new instance of DatasetSnapshotCatalogRecord.
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_at ⇒ Object
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_id ⇒ Object
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_name ⇒ Object
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 |
#digest ⇒ Object
Returns the value of attribute digest.
25 26 27 |
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25 def digest @digest end |
#metadata ⇒ Object
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_id ⇒ Object
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_state ⇒ Object
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_at ⇒ Object
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_count ⇒ Object
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_id ⇒ Object
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_kind ⇒ Object
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_uri ⇒ Object
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_count ⇒ Object
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 |
#version ⇒ Object
Returns the value of attribute version.
25 26 27 |
# File 'lib/rafflesia/datasets/dataset_snapshot_catalog_record.rb', line 25 def version @version end |