Class: Rafflesia::CorpuReleaseGcPlanRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CorpuReleaseGcPlanRequest
- 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
-
#corpus ⇒ Object
Returns the value of attribute corpus.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#plan_id ⇒ Object
Returns the value of attribute plan_id.
-
#retain_last ⇒ Object
Returns the value of attribute retain_last.
Instance Method Summary collapse
-
#initialize(json) ⇒ CorpuReleaseGcPlanRequest
constructor
A new instance of CorpuReleaseGcPlanRequest.
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
#corpus ⇒ Object
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_run ⇒ Object
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 |
#limit ⇒ Object
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_id ⇒ Object
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_last ⇒ Object
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 |