Class: Charming::Controller::TimerBinding

Inherits:
Data
  • Object
show all
Defined in:
lib/charming/controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, interval:, action:, autostart: true) ⇒ TimerBinding

Returns a new instance of TimerBinding.



9
10
11
# File 'lib/charming/controller.rb', line 9

def initialize(name:, interval:, action:, autostart: true)
  super
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



8
9
10
# File 'lib/charming/controller.rb', line 8

def action
  @action
end

#autostartObject (readonly)

Returns the value of attribute autostart

Returns:

  • (Object)

    the current value of autostart



8
9
10
# File 'lib/charming/controller.rb', line 8

def autostart
  @autostart
end

#intervalObject (readonly)

Returns the value of attribute interval

Returns:

  • (Object)

    the current value of interval



8
9
10
# File 'lib/charming/controller.rb', line 8

def interval
  @interval
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



8
9
10
# File 'lib/charming/controller.rb', line 8

def name
  @name
end