Class: Rafflesia::ArchiveInventoryRequest

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

Instance Method Summary collapse

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_networkObject

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_typeObject

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

#extractObject

Returns the value of attribute extract.



24
25
26
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 24

def extract
  @extract
end

#file_nameObject

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_extensionsObject

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_substringsObject

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

#kindObject

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_bytesObject

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_membersObject

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_bytesObject

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_idObject

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_dirObject

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

#urlObject

Returns the value of attribute url.



24
25
26
# File 'lib/rafflesia/artifacts/archive_inventory_request.rb', line 24

def url
  @url
end