Class: FCReminder::Reminder
- Inherits:
-
Object
- Object
- FCReminder::Reminder
- Defined in:
- lib/fc-reminder/reminder.rb
Instance Attribute Summary collapse
-
#gateway ⇒ Object
Returns the value of attribute gateway.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#recipient ⇒ Object
Returns the value of attribute recipient.
-
#team_name ⇒ Object
Returns the value of attribute team_name.
Instance Method Summary collapse
-
#initialize(&customization_block) ⇒ Reminder
constructor
A new instance of Reminder.
- #run(&customization_block) ⇒ Object
Constructor Details
Instance Attribute Details
#gateway ⇒ Object
Returns the value of attribute gateway.
3 4 5 |
# File 'lib/fc-reminder/reminder.rb', line 3 def gateway @gateway end |
#provider ⇒ Object
Returns the value of attribute provider.
3 4 5 |
# File 'lib/fc-reminder/reminder.rb', line 3 def provider @provider end |
#recipient ⇒ Object
Returns the value of attribute recipient.
4 5 6 |
# File 'lib/fc-reminder/reminder.rb', line 4 def recipient @recipient end |
#team_name ⇒ Object
Returns the value of attribute team_name.
4 5 6 |
# File 'lib/fc-reminder/reminder.rb', line 4 def team_name @team_name end |
Instance Method Details
#run(&customization_block) ⇒ Object
28 29 30 31 32 |
# File 'lib/fc-reminder/reminder.rb', line 28 def run(&customization_block) eval_block &customization_block result = provider.run(team_name) gateway.send(recipient, result) unless result.empty? end |