Class: Rafflesia::CorpuReleaseGcPlanRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/datasets/corpu_release_gc_plan_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  corpus: :corpus,
  dry_run: :dry_run,
  limit: :limit,
  plan_id: :plan_id,
  retain_last: :retain_last
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CorpuReleaseGcPlanRequest

Returns a new instance of CorpuReleaseGcPlanRequest.



23
24
25
26
27
28
29
30
31
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_request.rb', line 23

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @corpus = hash[:corpus]
  @dry_run = hash[:dry_run]
  @limit = hash[:limit]
  @plan_id = hash[:plan_id]
  @retain_last = hash[:retain_last]
end

Instance Attribute Details

#corpusObject

Returns the value of attribute corpus.



16
17
18
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_request.rb', line 16

def corpus
  @corpus
end

#dry_runObject

Returns the value of attribute dry_run.



16
17
18
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_request.rb', line 16

def dry_run
  @dry_run
end

#limitObject

Returns the value of attribute limit.



16
17
18
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_request.rb', line 16

def limit
  @limit
end

#plan_idObject

Returns the value of attribute plan_id.



16
17
18
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_request.rb', line 16

def plan_id
  @plan_id
end

#retain_lastObject

Returns the value of attribute retain_last.



16
17
18
# File 'lib/rafflesia/datasets/corpu_release_gc_plan_request.rb', line 16

def retain_last
  @retain_last
end