Class: Lita::Standups::Wizards::ScheduleStandup
- Inherits:
-
Wizard
- Object
- Wizard
- Lita::Standups::Wizards::ScheduleStandup
- Defined in:
- lib/lita/standups/wizards/schedule_standup.rb
Instance Method Summary collapse
Instance Method Details
#final_message ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/lita/standups/wizards/schedule_standup.rb', line 38 def [ "You're done! Below is the summary of your scheduled standup:", ">>>", @schedule.description ].join("\n") end |
#finish_wizard ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/lita/standups/wizards/schedule_standup.rb', line 26 def finish_wizard @schedule = Models::StandupSchedule.create( standup: standup, repeat: value_for(:repeat), day_of_week: value_for(:day_of_week), time: value_for(:time), recipients: value_for(:recipients).to_s.gsub("@", "").split(/[\s,\n]/m).map(&:strip).map(&:presence).compact, channel: value_for(:channel) ) robot.schedule_standup(@schedule) end |