Class: Rafflesia::DatasetSourceSnapshotFetchRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetSourceSnapshotFetchRequest
- Defined in:
- lib/rafflesia/datasets/dataset_source_snapshot_fetch_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ artifact_kind: :artifact_kind, expected_etag: :expected_etag, expected_md5: :expected_md_5, expected_sha256: :expected_sha_256, expected_size_bytes: :expected_size_bytes, max_bytes: :max_bytes, source: :source, url: :url, version: :version }.freeze
Instance Attribute Summary collapse
-
#artifact_kind ⇒ Object
Returns the value of attribute artifact_kind.
-
#expected_etag ⇒ Object
Returns the value of attribute expected_etag.
-
#expected_md_5 ⇒ Object
Returns the value of attribute expected_md_5.
-
#expected_sha_256 ⇒ Object
Returns the value of attribute expected_sha_256.
-
#expected_size_bytes ⇒ Object
Returns the value of attribute expected_size_bytes.
-
#max_bytes ⇒ Object
Returns the value of attribute max_bytes.
-
#source ⇒ Object
Returns the value of attribute source.
-
#url ⇒ Object
Returns the value of attribute url.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetSourceSnapshotFetchRequest
constructor
A new instance of DatasetSourceSnapshotFetchRequest.
Constructor Details
#initialize(json) ⇒ DatasetSourceSnapshotFetchRequest
Returns a new instance of DatasetSourceSnapshotFetchRequest.
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_fetch_request.rb', line 31 def initialize(json) super() hash = self.class.normalize(json) @artifact_kind = hash[:artifact_kind] @expected_etag = hash[:expected_etag] @expected_md_5 = hash[:expected_md5] @expected_sha_256 = hash[:expected_sha256] @expected_size_bytes = hash[:expected_size_bytes] @max_bytes = hash[:max_bytes] @source = hash[:source] @url = hash[:url] @version = hash[:version] end |
Instance Attribute Details
#artifact_kind ⇒ Object
Returns the value of attribute artifact_kind.
20 21 22 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_fetch_request.rb', line 20 def artifact_kind @artifact_kind end |
#expected_etag ⇒ Object
Returns the value of attribute expected_etag.
20 21 22 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_fetch_request.rb', line 20 def expected_etag @expected_etag end |
#expected_md_5 ⇒ Object
Returns the value of attribute expected_md_5.
20 21 22 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_fetch_request.rb', line 20 def expected_md_5 @expected_md_5 end |
#expected_sha_256 ⇒ Object
Returns the value of attribute expected_sha_256.
20 21 22 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_fetch_request.rb', line 20 def expected_sha_256 @expected_sha_256 end |
#expected_size_bytes ⇒ Object
Returns the value of attribute expected_size_bytes.
20 21 22 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_fetch_request.rb', line 20 def expected_size_bytes @expected_size_bytes end |
#max_bytes ⇒ Object
Returns the value of attribute max_bytes.
20 21 22 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_fetch_request.rb', line 20 def max_bytes @max_bytes end |
#source ⇒ Object
Returns the value of attribute source.
20 21 22 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_fetch_request.rb', line 20 def source @source end |
#url ⇒ Object
Returns the value of attribute url.
20 21 22 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_fetch_request.rb', line 20 def url @url end |
#version ⇒ Object
Returns the value of attribute version.
20 21 22 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_fetch_request.rb', line 20 def version @version end |