class RMonitor::Actions::DSL
Attributes
actions[RW]
Public Class Methods
new()
click to toggle source
# File lib/rmonitor/actions/dsl.rb, line 6 def initialize @actions = [] end
Public Instance Methods
dpi(value)
click to toggle source
# File lib/rmonitor/actions/dsl.rb, line 18 def dpi(value) @actions << {:action => :option, :name => :dpi, :value => value} end
off(name)
click to toggle source
# File lib/rmonitor/actions/dsl.rb, line 10 def off(name) @actions << {:action => :off, :name => name} end
on(name, options = {})
click to toggle source
# File lib/rmonitor/actions/dsl.rb, line 14 def on(name, options = {}) @actions << options.merge(:action => :on, :name => name) end