Class: Rafflesia::SearchSegmentGcData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SearchSegmentGcData
- Defined in:
- lib/rafflesia/proteins/search_segment_gc_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ candidate_manifest_count: :candidate_manifest_count, candidate_object_ids: :candidate_object_ids, deleted_object_ids: :deleted_object_ids, is_dry_run: :is_dry_run, keep_manifest_count: :keep_manifest_count, live_object_ids: :live_object_ids, unused_object_ids: :unused_object_ids }.freeze
Instance Attribute Summary collapse
-
#candidate_manifest_count ⇒ Object
Returns the value of attribute candidate_manifest_count.
-
#candidate_object_ids ⇒ Object
Returns the value of attribute candidate_object_ids.
-
#deleted_object_ids ⇒ Object
Returns the value of attribute deleted_object_ids.
-
#is_dry_run ⇒ Object
Returns the value of attribute is_dry_run.
-
#keep_manifest_count ⇒ Object
Returns the value of attribute keep_manifest_count.
-
#live_object_ids ⇒ Object
Returns the value of attribute live_object_ids.
-
#unused_object_ids ⇒ Object
Returns the value of attribute unused_object_ids.
Instance Method Summary collapse
-
#initialize(json) ⇒ SearchSegmentGcData
constructor
A new instance of SearchSegmentGcData.
Constructor Details
#initialize(json) ⇒ SearchSegmentGcData
Returns a new instance of SearchSegmentGcData.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/proteins/search_segment_gc_data.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @candidate_manifest_count = hash[:candidate_manifest_count] @candidate_object_ids = (hash[:candidate_object_ids] || []) @deleted_object_ids = (hash[:deleted_object_ids] || []) @is_dry_run = hash[:is_dry_run] @keep_manifest_count = hash[:keep_manifest_count] @live_object_ids = (hash[:live_object_ids] || []) @unused_object_ids = (hash[:unused_object_ids] || []) end |
Instance Attribute Details
#candidate_manifest_count ⇒ Object
Returns the value of attribute candidate_manifest_count.
18 19 20 |
# File 'lib/rafflesia/proteins/search_segment_gc_data.rb', line 18 def candidate_manifest_count @candidate_manifest_count end |
#candidate_object_ids ⇒ Object
Returns the value of attribute candidate_object_ids.
18 19 20 |
# File 'lib/rafflesia/proteins/search_segment_gc_data.rb', line 18 def candidate_object_ids @candidate_object_ids end |
#deleted_object_ids ⇒ Object
Returns the value of attribute deleted_object_ids.
18 19 20 |
# File 'lib/rafflesia/proteins/search_segment_gc_data.rb', line 18 def deleted_object_ids @deleted_object_ids end |
#is_dry_run ⇒ Object
Returns the value of attribute is_dry_run.
18 19 20 |
# File 'lib/rafflesia/proteins/search_segment_gc_data.rb', line 18 def is_dry_run @is_dry_run end |
#keep_manifest_count ⇒ Object
Returns the value of attribute keep_manifest_count.
18 19 20 |
# File 'lib/rafflesia/proteins/search_segment_gc_data.rb', line 18 def keep_manifest_count @keep_manifest_count end |
#live_object_ids ⇒ Object
Returns the value of attribute live_object_ids.
18 19 20 |
# File 'lib/rafflesia/proteins/search_segment_gc_data.rb', line 18 def live_object_ids @live_object_ids end |
#unused_object_ids ⇒ Object
Returns the value of attribute unused_object_ids.
18 19 20 |
# File 'lib/rafflesia/proteins/search_segment_gc_data.rb', line 18 def unused_object_ids @unused_object_ids end |