Class: Rafflesia::ArchiveArtifactImportRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ArchiveArtifactImportRequest
- Defined in:
- lib/rafflesia/artifacts/archive_artifact_import_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ associate: :associate, import: :import, include_kinds: :include_kinds, include_path_substrings: :include_path_substrings, inventory_object_id: :inventory_object_id, inventory_path: :inventory_path, max_imports: :max_imports, output_dir: :output_dir }.freeze
Instance Attribute Summary collapse
-
#associate ⇒ Object
Returns the value of attribute associate.
-
#import ⇒ Object
Returns the value of attribute import.
-
#include_kinds ⇒ Object
Returns the value of attribute include_kinds.
-
#include_path_substrings ⇒ Object
Returns the value of attribute include_path_substrings.
-
#inventory_object_id ⇒ Object
Returns the value of attribute inventory_object_id.
-
#inventory_path ⇒ Object
Returns the value of attribute inventory_path.
-
#max_imports ⇒ Object
Returns the value of attribute max_imports.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
Instance Method Summary collapse
-
#initialize(json) ⇒ ArchiveArtifactImportRequest
constructor
A new instance of ArchiveArtifactImportRequest.
Constructor Details
#initialize(json) ⇒ ArchiveArtifactImportRequest
Returns a new instance of ArchiveArtifactImportRequest.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/artifacts/archive_artifact_import_request.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @associate = hash[:associate] @import = hash[:import] @include_kinds = (hash[:include_kinds] || []) @include_path_substrings = (hash[:include_path_substrings] || []) @inventory_object_id = hash[:inventory_object_id] @inventory_path = hash[:inventory_path] @max_imports = hash[:max_imports] @output_dir = hash[:output_dir] end |
Instance Attribute Details
#associate ⇒ Object
Returns the value of attribute associate.
19 20 21 |
# File 'lib/rafflesia/artifacts/archive_artifact_import_request.rb', line 19 def associate @associate end |
#import ⇒ Object
Returns the value of attribute import.
19 20 21 |
# File 'lib/rafflesia/artifacts/archive_artifact_import_request.rb', line 19 def import @import end |
#include_kinds ⇒ Object
Returns the value of attribute include_kinds.
19 20 21 |
# File 'lib/rafflesia/artifacts/archive_artifact_import_request.rb', line 19 def include_kinds @include_kinds end |
#include_path_substrings ⇒ Object
Returns the value of attribute include_path_substrings.
19 20 21 |
# File 'lib/rafflesia/artifacts/archive_artifact_import_request.rb', line 19 def include_path_substrings @include_path_substrings end |
#inventory_object_id ⇒ Object
Returns the value of attribute inventory_object_id.
19 20 21 |
# File 'lib/rafflesia/artifacts/archive_artifact_import_request.rb', line 19 def inventory_object_id @inventory_object_id end |
#inventory_path ⇒ Object
Returns the value of attribute inventory_path.
19 20 21 |
# File 'lib/rafflesia/artifacts/archive_artifact_import_request.rb', line 19 def inventory_path @inventory_path end |
#max_imports ⇒ Object
Returns the value of attribute max_imports.
19 20 21 |
# File 'lib/rafflesia/artifacts/archive_artifact_import_request.rb', line 19 def max_imports @max_imports end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
19 20 21 |
# File 'lib/rafflesia/artifacts/archive_artifact_import_request.rb', line 19 def output_dir @output_dir end |