Class: Wurk::Collapse::Policy

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

Overview

A parsed declaration: the policy's name, plus the keyword arguments its module takes, ready to splat into Debounce.schedule or Throttle.admit. Parsing straight into the callee's own keywords is what stops this file from growing a second opinion about what wait means.

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



64
65
66
# File 'lib/wurk/collapse.rb', line 64

def name
  @name
end

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



64
65
66
# File 'lib/wurk/collapse.rb', line 64

def params
  @params
end