Class: Rundoc::CodeCommand::Background::WaitArgs

Inherits:
Object
  • Object
show all
Defined in:
lib/rundoc/code_command/background/wait.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/rundoc/code_command/background/wait.rb', line 5

def name
  @name
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



5
6
7
# File 'lib/rundoc/code_command/background/wait.rb', line 5

def timeout
  @timeout
end

#waitObject (readonly)

Returns the value of attribute wait.



5
6
7
# File 'lib/rundoc/code_command/background/wait.rb', line 5

def wait
  @wait
end