Class: Rafflesia::SequenceCandidateGcPlanRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceCandidateGcPlanRequest
- Defined in:
- lib/rafflesia/sequences/sequence_candidate_gc_plan_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ apply: :apply, from_generation: :from_generation, keep_last_generations: :keep_last_generations, max_garbage_keys: :max_garbage_keys, min_generation_age_ms: :min_generation_age_ms, namespace: :namespace, now_unix_ms: :now_unix_ms, timeout_ms: :timeout_ms }.freeze
Instance Attribute Summary collapse
-
#apply ⇒ Object
Returns the value of attribute apply.
-
#from_generation ⇒ Object
Returns the value of attribute from_generation.
-
#keep_last_generations ⇒ Object
Returns the value of attribute keep_last_generations.
-
#max_garbage_keys ⇒ Object
Returns the value of attribute max_garbage_keys.
-
#min_generation_age_ms ⇒ Object
Returns the value of attribute min_generation_age_ms.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#now_unix_ms ⇒ Object
Returns the value of attribute now_unix_ms.
-
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceCandidateGcPlanRequest
constructor
A new instance of SequenceCandidateGcPlanRequest.
Constructor Details
#initialize(json) ⇒ SequenceCandidateGcPlanRequest
Returns a new instance of SequenceCandidateGcPlanRequest.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/sequences/sequence_candidate_gc_plan_request.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @apply = hash[:apply] @from_generation = hash[:from_generation] @keep_last_generations = hash[:keep_last_generations] @max_garbage_keys = hash[:max_garbage_keys] @min_generation_age_ms = hash[:min_generation_age_ms] @namespace = hash[:namespace] @now_unix_ms = hash[:now_unix_ms] @timeout_ms = hash[:timeout_ms] end |
Instance Attribute Details
#apply ⇒ Object
Returns the value of attribute apply.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_candidate_gc_plan_request.rb', line 19 def apply @apply end |
#from_generation ⇒ Object
Returns the value of attribute from_generation.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_candidate_gc_plan_request.rb', line 19 def from_generation @from_generation end |
#keep_last_generations ⇒ Object
Returns the value of attribute keep_last_generations.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_candidate_gc_plan_request.rb', line 19 def keep_last_generations @keep_last_generations end |
#max_garbage_keys ⇒ Object
Returns the value of attribute max_garbage_keys.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_candidate_gc_plan_request.rb', line 19 def max_garbage_keys @max_garbage_keys end |
#min_generation_age_ms ⇒ Object
Returns the value of attribute min_generation_age_ms.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_candidate_gc_plan_request.rb', line 19 def min_generation_age_ms @min_generation_age_ms end |
#namespace ⇒ Object
Returns the value of attribute namespace.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_candidate_gc_plan_request.rb', line 19 def namespace @namespace end |
#now_unix_ms ⇒ Object
Returns the value of attribute now_unix_ms.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_candidate_gc_plan_request.rb', line 19 def now_unix_ms @now_unix_ms end |
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
19 20 21 |
# File 'lib/rafflesia/sequences/sequence_candidate_gc_plan_request.rb', line 19 def timeout_ms @timeout_ms end |