Class: Rafflesia::CorpuReleaseGcPlanData

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_refsObject

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

#backendObject

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_refsObject

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

#corpusObject

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_refObject

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_runObject

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_countObject

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_refsObject

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_idObject

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_lastObject

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_policyObject

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_refsObject

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