Class: AttendanceBot::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/attendance_bot/cli.rb

Instance Method Summary collapse

Constructor Details

#initialize(args = nil, options = nil, config = nil) ⇒ CLI

Returns a new instance of CLI.



7
8
9
10
# File 'lib/attendance_bot/cli.rb', line 7

def initialize(args = nil, options = nil, config = nil)
  @bot = AttendanceBot::Bot.new
  super
end

Instance Method Details

#checkinObject



13
14
15
# File 'lib/attendance_bot/cli.rb', line 13

def checkin
  @bot.checkin
end

#checkoutObject



18
19
20
# File 'lib/attendance_bot/cli.rb', line 18

def checkout
  @bot.checkout
end

#generateObject



23
24
25
# File 'lib/attendance_bot/cli.rb', line 23

def generate
  AttendanceBot::Generator.start
end