Class: Rafflesia::DatasetSourceSnapshotPreflightData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetSourceSnapshotPreflightData
- Defined in:
- lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ accept_ranges: :accept_ranges, acquisition_working_bytes: :acquisition_working_bytes, additional_working_bytes: :additional_working_bytes, artifact_kind: :artifact_kind, available_local_bytes: :available_local_bytes, content_length_bytes: :content_length_bytes, has_capacity: :has_capacity, http_etag: :http_etag, http_last_modified: :http_last_modified, is_capacity_known: :is_capacity_known, is_content_length_known: :is_content_length_known, minimum_free_bytes: :minimum_free_bytes, profile: :profile, published_md5: :published_md_5, recommended_max_bytes: :recommended_max_bytes, release_metadata_url: :release_metadata_url, requested_url: :requested_url, required_local_bytes: :required_local_bytes, resolved_url: :resolved_url, source: :source, upstream_release: :upstream_release }.freeze
Instance Attribute Summary collapse
-
#accept_ranges ⇒ Object
Returns the value of attribute accept_ranges.
-
#acquisition_working_bytes ⇒ Object
Returns the value of attribute acquisition_working_bytes.
-
#additional_working_bytes ⇒ Object
Returns the value of attribute additional_working_bytes.
-
#artifact_kind ⇒ Object
Returns the value of attribute artifact_kind.
-
#available_local_bytes ⇒ Object
Returns the value of attribute available_local_bytes.
-
#content_length_bytes ⇒ Object
Returns the value of attribute content_length_bytes.
-
#has_capacity ⇒ Object
Returns the value of attribute has_capacity.
-
#http_etag ⇒ Object
Returns the value of attribute http_etag.
-
#http_last_modified ⇒ Object
Returns the value of attribute http_last_modified.
-
#is_capacity_known ⇒ Object
Returns the value of attribute is_capacity_known.
-
#is_content_length_known ⇒ Object
Returns the value of attribute is_content_length_known.
-
#minimum_free_bytes ⇒ Object
Returns the value of attribute minimum_free_bytes.
-
#profile ⇒ Object
Returns the value of attribute profile.
-
#published_md_5 ⇒ Object
Returns the value of attribute published_md_5.
-
#recommended_max_bytes ⇒ Object
Returns the value of attribute recommended_max_bytes.
-
#release_metadata_url ⇒ Object
Returns the value of attribute release_metadata_url.
-
#requested_url ⇒ Object
Returns the value of attribute requested_url.
-
#required_local_bytes ⇒ Object
Returns the value of attribute required_local_bytes.
-
#resolved_url ⇒ Object
Returns the value of attribute resolved_url.
-
#source ⇒ Object
Returns the value of attribute source.
-
#upstream_release ⇒ Object
Returns the value of attribute upstream_release.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetSourceSnapshotPreflightData
constructor
A new instance of DatasetSourceSnapshotPreflightData.
Constructor Details
#initialize(json) ⇒ DatasetSourceSnapshotPreflightData
Returns a new instance of DatasetSourceSnapshotPreflightData.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 55 def initialize(json) super() hash = self.class.normalize(json) @accept_ranges = hash[:accept_ranges] @acquisition_working_bytes = hash[:acquisition_working_bytes] @additional_working_bytes = hash[:additional_working_bytes] @artifact_kind = hash[:artifact_kind] @available_local_bytes = hash[:available_local_bytes] @content_length_bytes = hash[:content_length_bytes] @has_capacity = hash[:has_capacity] @http_etag = hash[:http_etag] @http_last_modified = hash[:http_last_modified] @is_capacity_known = hash[:is_capacity_known] @is_content_length_known = hash[:is_content_length_known] @minimum_free_bytes = hash[:minimum_free_bytes] @profile = hash[:profile] ? Rafflesia::DatasetSourceSnapshotArtifactProfile.new(hash[:profile]) : nil @published_md_5 = hash[:published_md5] @recommended_max_bytes = hash[:recommended_max_bytes] @release_metadata_url = hash[:release_metadata_url] @requested_url = hash[:requested_url] @required_local_bytes = hash[:required_local_bytes] @resolved_url = hash[:resolved_url] @source = hash[:source] @upstream_release = hash[:upstream_release] end |
Instance Attribute Details
#accept_ranges ⇒ Object
Returns the value of attribute accept_ranges.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def accept_ranges @accept_ranges end |
#acquisition_working_bytes ⇒ Object
Returns the value of attribute acquisition_working_bytes.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def acquisition_working_bytes @acquisition_working_bytes end |
#additional_working_bytes ⇒ Object
Returns the value of attribute additional_working_bytes.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def additional_working_bytes @additional_working_bytes end |
#artifact_kind ⇒ Object
Returns the value of attribute artifact_kind.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def artifact_kind @artifact_kind end |
#available_local_bytes ⇒ Object
Returns the value of attribute available_local_bytes.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def available_local_bytes @available_local_bytes end |
#content_length_bytes ⇒ Object
Returns the value of attribute content_length_bytes.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def content_length_bytes @content_length_bytes end |
#has_capacity ⇒ Object
Returns the value of attribute has_capacity.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def has_capacity @has_capacity end |
#http_etag ⇒ Object
Returns the value of attribute http_etag.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def http_etag @http_etag end |
#http_last_modified ⇒ Object
Returns the value of attribute http_last_modified.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def http_last_modified @http_last_modified end |
#is_capacity_known ⇒ Object
Returns the value of attribute is_capacity_known.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def is_capacity_known @is_capacity_known end |
#is_content_length_known ⇒ Object
Returns the value of attribute is_content_length_known.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def is_content_length_known @is_content_length_known end |
#minimum_free_bytes ⇒ Object
Returns the value of attribute minimum_free_bytes.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def minimum_free_bytes @minimum_free_bytes end |
#profile ⇒ Object
Returns the value of attribute profile.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def profile @profile end |
#published_md_5 ⇒ Object
Returns the value of attribute published_md_5.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def published_md_5 @published_md_5 end |
#recommended_max_bytes ⇒ Object
Returns the value of attribute recommended_max_bytes.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def recommended_max_bytes @recommended_max_bytes end |
#release_metadata_url ⇒ Object
Returns the value of attribute release_metadata_url.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def @release_metadata_url end |
#requested_url ⇒ Object
Returns the value of attribute requested_url.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def requested_url @requested_url end |
#required_local_bytes ⇒ Object
Returns the value of attribute required_local_bytes.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def required_local_bytes @required_local_bytes end |
#resolved_url ⇒ Object
Returns the value of attribute resolved_url.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def resolved_url @resolved_url end |
#source ⇒ Object
Returns the value of attribute source.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def source @source end |
#upstream_release ⇒ Object
Returns the value of attribute upstream_release.
32 33 34 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32 def upstream_release @upstream_release end |