Class: Ruboty::Actions::Ragoon::Event

Inherits:
Base
  • Object
show all
Includes:
Ruboty::Actions::Ragoon
Defined in:
lib/ruboty/actions/ragoon/event.rb

Instance Method Summary collapse

Methods included from Ruboty::Actions::Ragoon

#private?

Instance Method Details

#callObject



5
6
7
8
9
# File 'lib/ruboty/actions/ragoon/event.rb', line 5

def call
  target_date = parse_date(message[:date])
  events = ::Ruboty::Ragoon::Event.new(target_date)
  message.reply(events.render(private: private?))
end