Class: Rundoc::CodeCommand::Background::WaitArgs
- Inherits:
-
Object
- Object
- Rundoc::CodeCommand::Background::WaitArgs
- Defined in:
- lib/rundoc/code_command/background/wait.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
-
#wait ⇒ Object
readonly
Returns the value of attribute wait.
Instance Method Summary collapse
-
#initialize(name:, wait:, timeout: 5) ⇒ WaitArgs
constructor
A new instance of WaitArgs.
Constructor Details
#initialize(name:, wait:, timeout: 5) ⇒ WaitArgs
Returns a new instance of WaitArgs.
7 8 9 10 11 |
# File 'lib/rundoc/code_command/background/wait.rb', line 7 def initialize(name:, wait:, timeout: 5) @name = name @wait = wait @timeout = Integer(timeout) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/rundoc/code_command/background/wait.rb', line 5 def name @name end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/rundoc/code_command/background/wait.rb', line 5 def timeout @timeout end |
#wait ⇒ Object (readonly)
Returns the value of attribute wait.
5 6 7 |
# File 'lib/rundoc/code_command/background/wait.rb', line 5 def wait @wait end |