Class: Rafflesia::DatasetSourceSnapshotShowData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetSourceSnapshotShowData
- Defined in:
- lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ database: :database, duplicate_primary_id_count: :duplicate_primary_id_count, format: :format, parser: :parser, record_count: :record_count, ref: :ref, relation: :relation, release: :release, sequence_catalog_id: :sequence_catalog_id, sequence_catalog_manifest_object: :sequence_catalog_manifest_object, source: :source, source_object: :source_object, source_sha256: :source_sha_256, source_size_bytes: :source_size_bytes, version: :version }.freeze
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#duplicate_primary_id_count ⇒ Object
Returns the value of attribute duplicate_primary_id_count.
-
#format ⇒ Object
Returns the value of attribute format.
-
#parser ⇒ Object
Returns the value of attribute parser.
-
#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.
-
#sequence_catalog_id ⇒ Object
Returns the value of attribute sequence_catalog_id.
-
#sequence_catalog_manifest_object ⇒ Object
Returns the value of attribute sequence_catalog_manifest_object.
-
#source ⇒ Object
Returns the value of attribute source.
-
#source_object ⇒ Object
Returns the value of attribute source_object.
-
#source_sha_256 ⇒ Object
Returns the value of attribute source_sha_256.
-
#source_size_bytes ⇒ Object
Returns the value of attribute source_size_bytes.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetSourceSnapshotShowData
constructor
A new instance of DatasetSourceSnapshotShowData.
Constructor Details
#initialize(json) ⇒ DatasetSourceSnapshotShowData
Returns a new instance of DatasetSourceSnapshotShowData.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 43 def initialize(json) super() hash = self.class.normalize(json) @database = hash[:database] @duplicate_primary_id_count = hash[:duplicate_primary_id_count] @format = hash[:format] @parser = hash[:parser] @record_count = hash[:record_count] @ref = hash[:ref] @relation = hash[:relation] ? Rafflesia::RelationArtifactData.new(hash[:relation]) : nil @release = hash[:release] @sequence_catalog_id = hash[:sequence_catalog_id] @sequence_catalog_manifest_object = hash[:sequence_catalog_manifest_object] ? Rafflesia::ObjectRef.new(hash[:sequence_catalog_manifest_object]) : nil @source = hash[:source] @source_object = hash[:source_object] ? Rafflesia::ObjectRef.new(hash[:source_object]) : nil @source_sha_256 = hash[:source_sha256] @source_size_bytes = hash[:source_size_bytes] @version = hash[:version] end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 26 def database @database end |
#duplicate_primary_id_count ⇒ Object
Returns the value of attribute duplicate_primary_id_count.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 26 def duplicate_primary_id_count @duplicate_primary_id_count end |
#format ⇒ Object
Returns the value of attribute format.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 26 def format @format end |
#parser ⇒ Object
Returns the value of attribute parser.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 26 def parser @parser end |
#record_count ⇒ Object
Returns the value of attribute record_count.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 26 def record_count @record_count end |
#ref ⇒ Object
Returns the value of attribute ref.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 26 def ref @ref end |
#relation ⇒ Object
Returns the value of attribute relation.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 26 def relation @relation end |
#release ⇒ Object
Returns the value of attribute release.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 26 def release @release end |
#sequence_catalog_id ⇒ Object
Returns the value of attribute sequence_catalog_id.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 26 def sequence_catalog_id @sequence_catalog_id end |
#sequence_catalog_manifest_object ⇒ Object
Returns the value of attribute sequence_catalog_manifest_object.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 26 def sequence_catalog_manifest_object @sequence_catalog_manifest_object end |
#source ⇒ Object
Returns the value of attribute source.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 26 def source @source end |
#source_object ⇒ Object
Returns the value of attribute source_object.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 26 def source_object @source_object end |
#source_sha_256 ⇒ Object
Returns the value of attribute source_sha_256.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 26 def source_sha_256 @source_sha_256 end |
#source_size_bytes ⇒ Object
Returns the value of attribute source_size_bytes.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 26 def source_size_bytes @source_size_bytes end |
#version ⇒ Object
Returns the value of attribute version.
26 27 28 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_show_data.rb', line 26 def version @version end |