Class: Rafflesia::CorpuReleaseGcPlanData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CorpuReleaseGcPlanData
- Defined in:
- lib/rafflesia/datasets/corpu_release_gc_plan_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ active_reader_pin_refs: :active_reader_pin_refs, backend: :backend, candidate_refs: :candidate_refs, corpus: :corpus, current_ref: :current_ref, dry_run: :dry_run, inspected_count: :inspected_count, kept_refs: :kept_refs, plan_id: :plan_id, retain_last: :retain_last, retention_policy: :retention_policy, would_delete_refs: :would_delete_refs }.freeze
Instance Attribute Summary collapse
-
#active_reader_pin_refs ⇒ Object
Returns the value of attribute active_reader_pin_refs.
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#candidate_refs ⇒ Object
Returns the value of attribute candidate_refs.
-
#corpus ⇒ Object
Returns the value of attribute corpus.
-
#current_ref ⇒ Object
Returns the value of attribute current_ref.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#inspected_count ⇒ Object
Returns the value of attribute inspected_count.
-
#kept_refs ⇒ Object
Returns the value of attribute kept_refs.
-
#plan_id ⇒ Object
Returns the value of attribute plan_id.
-
#retain_last ⇒ Object
Returns the value of attribute retain_last.
-
#retention_policy ⇒ Object
Returns the value of attribute retention_policy.
-
#would_delete_refs ⇒ Object
Returns the value of attribute would_delete_refs.
Instance Method Summary collapse
-
#initialize(json) ⇒ CorpuReleaseGcPlanData
constructor
A new instance of CorpuReleaseGcPlanData.
Constructor Details
#initialize(json) ⇒ CorpuReleaseGcPlanData
Returns a new instance of CorpuReleaseGcPlanData.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_data.rb', line 37 def initialize(json) super() hash = self.class.normalize(json) @active_reader_pin_refs = (hash[:active_reader_pin_refs] || []) @backend = hash[:backend] @candidate_refs = (hash[:candidate_refs] || []) @corpus = hash[:corpus] @current_ref = hash[:current_ref] @dry_run = hash[:dry_run] @inspected_count = hash[:inspected_count] @kept_refs = (hash[:kept_refs] || []) @plan_id = hash[:plan_id] @retain_last = hash[:retain_last] @retention_policy = hash[:retention_policy] || {} @would_delete_refs = (hash[:would_delete_refs] || []) end |
Instance Attribute Details
#active_reader_pin_refs ⇒ Object
Returns the value of attribute active_reader_pin_refs.
23 24 25 |
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_data.rb', line 23 def active_reader_pin_refs @active_reader_pin_refs end |
#backend ⇒ Object
Returns the value of attribute backend.
23 24 25 |
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_data.rb', line 23 def backend @backend end |
#candidate_refs ⇒ Object
Returns the value of attribute candidate_refs.
23 24 25 |
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_data.rb', line 23 def candidate_refs @candidate_refs end |
#corpus ⇒ Object
Returns the value of attribute corpus.
23 24 25 |
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_data.rb', line 23 def corpus @corpus end |
#current_ref ⇒ Object
Returns the value of attribute current_ref.
23 24 25 |
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_data.rb', line 23 def current_ref @current_ref end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
23 24 25 |
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_data.rb', line 23 def dry_run @dry_run end |
#inspected_count ⇒ Object
Returns the value of attribute inspected_count.
23 24 25 |
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_data.rb', line 23 def inspected_count @inspected_count end |
#kept_refs ⇒ Object
Returns the value of attribute kept_refs.
23 24 25 |
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_data.rb', line 23 def kept_refs @kept_refs end |
#plan_id ⇒ Object
Returns the value of attribute plan_id.
23 24 25 |
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_data.rb', line 23 def plan_id @plan_id end |
#retain_last ⇒ Object
Returns the value of attribute retain_last.
23 24 25 |
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_data.rb', line 23 def retain_last @retain_last end |
#retention_policy ⇒ Object
Returns the value of attribute retention_policy.
23 24 25 |
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_data.rb', line 23 def retention_policy @retention_policy end |
#would_delete_refs ⇒ Object
Returns the value of attribute would_delete_refs.
23 24 25 |
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_data.rb', line 23 def would_delete_refs @would_delete_refs end |