Class: Rafflesia::SearchSegmentGcRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SearchSegmentGcRequest
- Defined in:
- lib/rafflesia/sequences/search_segment_gc_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ candidate_manifest_object_ids: :candidate_manifest_object_ids, candidate_manifest_paths: :candidate_manifest_paths, dry_run: :dry_run, keep_manifest_object_ids: :keep_manifest_object_ids, keep_manifest_paths: :keep_manifest_paths }.freeze
Instance Attribute Summary collapse
-
#candidate_manifest_object_ids ⇒ Object
Returns the value of attribute candidate_manifest_object_ids.
-
#candidate_manifest_paths ⇒ Object
Returns the value of attribute candidate_manifest_paths.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#keep_manifest_object_ids ⇒ Object
Returns the value of attribute keep_manifest_object_ids.
-
#keep_manifest_paths ⇒ Object
Returns the value of attribute keep_manifest_paths.
Instance Method Summary collapse
-
#initialize(json) ⇒ SearchSegmentGcRequest
constructor
A new instance of SearchSegmentGcRequest.
Constructor Details
#initialize(json) ⇒ SearchSegmentGcRequest
Returns a new instance of SearchSegmentGcRequest.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/sequences/search_segment_gc_request.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @candidate_manifest_object_ids = (hash[:candidate_manifest_object_ids] || []) @candidate_manifest_paths = (hash[:candidate_manifest_paths] || []) @dry_run = hash[:dry_run] @keep_manifest_object_ids = (hash[:keep_manifest_object_ids] || []) @keep_manifest_paths = (hash[:keep_manifest_paths] || []) end |
Instance Attribute Details
#candidate_manifest_object_ids ⇒ Object
Returns the value of attribute candidate_manifest_object_ids.
16 17 18 |
# File 'lib/rafflesia/sequences/search_segment_gc_request.rb', line 16 def candidate_manifest_object_ids @candidate_manifest_object_ids end |
#candidate_manifest_paths ⇒ Object
Returns the value of attribute candidate_manifest_paths.
16 17 18 |
# File 'lib/rafflesia/sequences/search_segment_gc_request.rb', line 16 def candidate_manifest_paths @candidate_manifest_paths end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
16 17 18 |
# File 'lib/rafflesia/sequences/search_segment_gc_request.rb', line 16 def dry_run @dry_run end |
#keep_manifest_object_ids ⇒ Object
Returns the value of attribute keep_manifest_object_ids.
16 17 18 |
# File 'lib/rafflesia/sequences/search_segment_gc_request.rb', line 16 def keep_manifest_object_ids @keep_manifest_object_ids end |
#keep_manifest_paths ⇒ Object
Returns the value of attribute keep_manifest_paths.
16 17 18 |
# File 'lib/rafflesia/sequences/search_segment_gc_request.rb', line 16 def keep_manifest_paths @keep_manifest_paths end |