Class: Rafflesia::DatasetSourceSnapshotPreflightRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  additional_working_bytes: :additional_working_bytes,
  artifact_kind: :artifact_kind,
  minimum_free_bytes: :minimum_free_bytes,
  source: :source,
  url: :url
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DatasetSourceSnapshotPreflightRequest

Returns a new instance of DatasetSourceSnapshotPreflightRequest.



23
24
25
26
27
28
29
30
31
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_request.rb', line 23

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @additional_working_bytes = hash[:additional_working_bytes]
  @artifact_kind = hash[:artifact_kind]
  @minimum_free_bytes = hash[:minimum_free_bytes]
  @source = hash[:source]
  @url = hash[:url]
end

Instance Attribute Details

#additional_working_bytesObject

Returns the value of attribute additional_working_bytes.



16
17
18
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_request.rb', line 16

def additional_working_bytes
  @additional_working_bytes
end

#artifact_kindObject

Returns the value of attribute artifact_kind.



16
17
18
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_request.rb', line 16

def artifact_kind
  @artifact_kind
end

#minimum_free_bytesObject

Returns the value of attribute minimum_free_bytes.



16
17
18
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_request.rb', line 16

def minimum_free_bytes
  @minimum_free_bytes
end

#sourceObject

Returns the value of attribute source.



16
17
18
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_request.rb', line 16

def source
  @source
end

#urlObject

Returns the value of attribute url.



16
17
18
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_request.rb', line 16

def url
  @url
end