Class: Rafflesia::ArchiveInventoryRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ArchiveInventoryRequest
- Defined in:
- lib/rafflesia/artifacts/archive_inventory_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ allow_network: :allow_network, content_type: :content_type, extract: :extract, file_name: :file_name, include_extensions: :include_extensions, include_path_substrings: :include_path_substrings, kind: :kind, max_download_bytes: :max_download_bytes, max_extracted_members: :max_extracted_members, max_member_bytes: :max_member_bytes, object_id: :object_id, output_dir: :output_dir, url: :url }.freeze
Instance Attribute Summary collapse
-
#allow_network ⇒ Object
Returns the value of attribute allow_network.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#extract ⇒ Object
Returns the value of attribute extract.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#include_extensions ⇒ Object
Returns the value of attribute include_extensions.
-
#include_path_substrings ⇒ Object
Returns the value of attribute include_path_substrings.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#max_download_bytes ⇒ Object
Returns the value of attribute max_download_bytes.
-
#max_extracted_members ⇒ Object
Returns the value of attribute max_extracted_members.
-
#max_member_bytes ⇒ Object
Returns the value of attribute max_member_bytes.
-
#object_id ⇒ Object
Returns the value of attribute object_id.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(json) ⇒ ArchiveInventoryRequest
constructor
A new instance of ArchiveInventoryRequest.
Constructor Details
#initialize(json) ⇒ ArchiveInventoryRequest
Returns a new instance of ArchiveInventoryRequest.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 39 def initialize(json) super() hash = self.class.normalize(json) @allow_network = hash[:allow_network] @content_type = hash[:content_type] @extract = hash[:extract] @file_name = hash[:file_name] @include_extensions = (hash[:include_extensions] || []) @include_path_substrings = (hash[:include_path_substrings] || []) @kind = hash[:kind] @max_download_bytes = hash[:max_download_bytes] @max_extracted_members = hash[:max_extracted_members] @max_member_bytes = hash[:max_member_bytes] @object_id = hash[:object_id] @output_dir = hash[:output_dir] @url = hash[:url] end |
Instance Attribute Details
#allow_network ⇒ Object
Returns the value of attribute allow_network.
24 25 26 |
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 24 def allow_network @allow_network end |
#content_type ⇒ Object
Returns the value of attribute content_type.
24 25 26 |
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 24 def content_type @content_type end |
#extract ⇒ Object
Returns the value of attribute extract.
24 25 26 |
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 24 def extract @extract end |
#file_name ⇒ Object
Returns the value of attribute file_name.
24 25 26 |
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 24 def file_name @file_name end |
#include_extensions ⇒ Object
Returns the value of attribute include_extensions.
24 25 26 |
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 24 def include_extensions @include_extensions end |
#include_path_substrings ⇒ Object
Returns the value of attribute include_path_substrings.
24 25 26 |
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 24 def include_path_substrings @include_path_substrings end |
#kind ⇒ Object
Returns the value of attribute kind.
24 25 26 |
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 24 def kind @kind end |
#max_download_bytes ⇒ Object
Returns the value of attribute max_download_bytes.
24 25 26 |
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 24 def max_download_bytes @max_download_bytes end |
#max_extracted_members ⇒ Object
Returns the value of attribute max_extracted_members.
24 25 26 |
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 24 def max_extracted_members @max_extracted_members end |
#max_member_bytes ⇒ Object
Returns the value of attribute max_member_bytes.
24 25 26 |
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 24 def max_member_bytes @max_member_bytes end |
#object_id ⇒ Object
Returns the value of attribute object_id.
24 25 26 |
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 24 def object_id @object_id end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
24 25 26 |
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 24 def output_dir @output_dir end |
#url ⇒ Object
Returns the value of attribute url.
24 25 26 |
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 24 def url @url end |