Class: Rafflesia::DatasetSourceSnapshotFetchRequest

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

Instance Method Summary collapse

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_kindObject

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_etagObject

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_5Object

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_256Object

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_bytesObject

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_bytesObject

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

#sourceObject

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

#urlObject

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

#versionObject

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