Class: Rafflesia::ArchiveMemberFindRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/artifacts/archive_member_find_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  allow_network: :allow_network,
  archive_object_id: :archive_object_id,
  content_type: :content_type,
  extract: :extract,
  file_name: :file_name,
  include_extensions: :include_extensions,
  inventory_object_id: :inventory_object_id,
  inventory_path: :inventory_path,
  kind: :kind,
  max_download_bytes: :max_download_bytes,
  max_extracted_members: :max_extracted_members,
  max_matches: :max_matches,
  max_member_bytes: :max_member_bytes,
  output_dir: :output_dir,
  path_substrings: :path_substrings,
  query_names: :query_names,
  query_suffixes: :query_suffixes,
  url: :url
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ArchiveMemberFindRequest

Returns a new instance of ArchiveMemberFindRequest.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 49

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @allow_network = hash[:allow_network]
  @archive_object_id = hash[:archive_object_id]
  @content_type = hash[:content_type]
  @extract = hash[:extract]
  @file_name = hash[:file_name]
  @include_extensions = (hash[:include_extensions] || [])
  @inventory_object_id = hash[:inventory_object_id]
  @inventory_path = hash[:inventory_path]
  @kind = hash[:kind]
  @max_download_bytes = hash[:max_download_bytes]
  @max_extracted_members = hash[:max_extracted_members]
  @max_matches = hash[:max_matches]
  @max_member_bytes = hash[:max_member_bytes]
  @output_dir = hash[:output_dir]
  @path_substrings = (hash[:path_substrings] || [])
  @query_names = (hash[:query_names] || [])
  @query_suffixes = (hash[:query_suffixes] || [])
  @url = hash[:url]
end

Instance Attribute Details

#allow_networkObject

Returns the value of attribute allow_network.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def allow_network
  @allow_network
end

#archive_object_idObject

Returns the value of attribute archive_object_id.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def archive_object_id
  @archive_object_id
end

#content_typeObject

Returns the value of attribute content_type.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def content_type
  @content_type
end

#extractObject

Returns the value of attribute extract.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def extract
  @extract
end

#file_nameObject

Returns the value of attribute file_name.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def file_name
  @file_name
end

#include_extensionsObject

Returns the value of attribute include_extensions.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def include_extensions
  @include_extensions
end

#inventory_object_idObject

Returns the value of attribute inventory_object_id.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def inventory_object_id
  @inventory_object_id
end

#inventory_pathObject

Returns the value of attribute inventory_path.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def inventory_path
  @inventory_path
end

#kindObject

Returns the value of attribute kind.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def kind
  @kind
end

#max_download_bytesObject

Returns the value of attribute max_download_bytes.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def max_download_bytes
  @max_download_bytes
end

#max_extracted_membersObject

Returns the value of attribute max_extracted_members.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def max_extracted_members
  @max_extracted_members
end

#max_matchesObject

Returns the value of attribute max_matches.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def max_matches
  @max_matches
end

#max_member_bytesObject

Returns the value of attribute max_member_bytes.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def max_member_bytes
  @max_member_bytes
end

#output_dirObject

Returns the value of attribute output_dir.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def output_dir
  @output_dir
end

#path_substringsObject

Returns the value of attribute path_substrings.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def path_substrings
  @path_substrings
end

#query_namesObject

Returns the value of attribute query_names.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def query_names
  @query_names
end

#query_suffixesObject

Returns the value of attribute query_suffixes.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def query_suffixes
  @query_suffixes
end

#urlObject

Returns the value of attribute url.



29
30
31
# File 'lib/rafflesia/artifacts/archive_member_find_request.rb', line 29

def url
  @url
end