class EmuPower::Commands::GetSchedule

Get the current event schedule. This triggers one ScheduleInfo notification for each of the listed event types.

Constants

EVENTS

Public Class Methods

new(event = nil) click to toggle source
Calls superclass method EmuPower::Commands::Command::new
# File lib/emu_power/commands.rb, line 158
def initialize(event = nil)

        super('get_schedule')

        unless event.nil?
                raise ArgumentError.new("Event must be one of #{EVENTS.join(', ')}") unless EVENTS.include?(event)
                @data[:event] = event
        end

end