class Ruboty::Calendar::Actions::Calendar
Public Instance Methods
call()
click to toggle source
# File lib/ruboty/calendar/actions/calendar.rb, line 7 def call message.reply(cal) end
Private Instance Methods
cal()
click to toggle source
# File lib/ruboty/calendar/actions/calendar.rb, line 12 def cal Display::Calendar.new.calendar(get_month_now,get_year_now) end
get_month_now()
click to toggle source
# File lib/ruboty/calendar/actions/calendar.rb, line 16 def get_month_now return Time.now.month end
get_year_now()
click to toggle source
# File lib/ruboty/calendar/actions/calendar.rb, line 20 def get_year_now return Time.now.year end