# Brett Bates require 'P4' class GTDAlarm attr_accessor :comm_list, :gtd def initialize(comm_list, gtd) @comm_list = comm_list @gtd = gtd end def command_switch case @comm_list[1].downcase when "list" #List all alarms when "sort" #Sort the list when "add" #Add an alarm when "delete" #Delete alarm end return comm end def run bool, msg = command_switch return bool, msg end end