Class: Rafflesia::JobCleanupRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::JobCleanupRequest
- Defined in:
- lib/rafflesia/jobs/job_cleanup_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ delete_terminal: :delete_terminal, dry_run: :dry_run, limit: :limit, mark_stale_running: :mark_stale_running, reason: :reason, stale_after_ms: :stale_after_ms, terminal_older_than_ms: :terminal_older_than_ms }.freeze
Instance Attribute Summary collapse
-
#delete_terminal ⇒ Object
Returns the value of attribute delete_terminal.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#mark_stale_running ⇒ Object
Returns the value of attribute mark_stale_running.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#stale_after_ms ⇒ Object
Returns the value of attribute stale_after_ms.
-
#terminal_older_than_ms ⇒ Object
Returns the value of attribute terminal_older_than_ms.
Instance Method Summary collapse
-
#initialize(json) ⇒ JobCleanupRequest
constructor
A new instance of JobCleanupRequest.
Constructor Details
#initialize(json) ⇒ JobCleanupRequest
Returns a new instance of JobCleanupRequest.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/jobs/job_cleanup_request.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @delete_terminal = hash[:delete_terminal] @dry_run = hash[:dry_run] @limit = hash[:limit] @mark_stale_running = hash[:mark_stale_running] @reason = hash[:reason] @stale_after_ms = hash[:stale_after_ms] @terminal_older_than_ms = hash[:terminal_older_than_ms] end |
Instance Attribute Details
#delete_terminal ⇒ Object
Returns the value of attribute delete_terminal.
18 19 20 |
# File 'lib/rafflesia/jobs/job_cleanup_request.rb', line 18 def delete_terminal @delete_terminal end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
18 19 20 |
# File 'lib/rafflesia/jobs/job_cleanup_request.rb', line 18 def dry_run @dry_run end |
#limit ⇒ Object
Returns the value of attribute limit.
18 19 20 |
# File 'lib/rafflesia/jobs/job_cleanup_request.rb', line 18 def limit @limit end |
#mark_stale_running ⇒ Object
Returns the value of attribute mark_stale_running.
18 19 20 |
# File 'lib/rafflesia/jobs/job_cleanup_request.rb', line 18 def mark_stale_running @mark_stale_running end |
#reason ⇒ Object
Returns the value of attribute reason.
18 19 20 |
# File 'lib/rafflesia/jobs/job_cleanup_request.rb', line 18 def reason @reason end |
#stale_after_ms ⇒ Object
Returns the value of attribute stale_after_ms.
18 19 20 |
# File 'lib/rafflesia/jobs/job_cleanup_request.rb', line 18 def stale_after_ms @stale_after_ms end |
#terminal_older_than_ms ⇒ Object
Returns the value of attribute terminal_older_than_ms.
18 19 20 |
# File 'lib/rafflesia/jobs/job_cleanup_request.rb', line 18 def terminal_older_than_ms @terminal_older_than_ms end |