Class: Ruboty::Actions::Ragoon::Remind
- Inherits:
-
Base
- Object
- Base
- Ruboty::Actions::Ragoon::Remind
- Includes:
- Ruboty::Actions::Ragoon
- Defined in:
- lib/ruboty/actions/ragoon/remind.rb
Instance Method Summary collapse
Methods included from Ruboty::Actions::Ragoon
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/ruboty/actions/ragoon/remind.rb', line 5 def call reminder = ::Ruboty::Ragoon::Remind.new(.robot.brain) events = reminder.retrieve if events.count > 0 .reply(events.render(private: private?, template: 'remind')) end end |