Class: Browserctl::PluginCommand

Inherits:
Struct
  • Object
show all
Defined in:
lib/browserctl.rb

Overview

Value object carried by the plugin registry. ‘block` is the plugin’s ‘(session, req) -> response` callable; `timeout` is the per-command wall clock in seconds (or `nil` for no timeout).

Instance Attribute Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



23
24
25
# File 'lib/browserctl.rb', line 23

def block
  @block
end

#timeoutObject

Returns the value of attribute timeout

Returns:

  • (Object)

    the current value of timeout



23
24
25
# File 'lib/browserctl.rb', line 23

def timeout
  @timeout
end