Class: SlackMessaging::Send
- Inherits:
-
Object
- Object
- SlackMessaging::Send
- Defined in:
- lib/slack_messaging/send.rb
Class Attribute Summary collapse
-
.options ⇒ Object
Returns the value of attribute options.
Class Method Summary collapse
Class Attribute Details
.options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/slack_messaging/send.rb', line 6 def @options end |
Class Method Details
.execute(args, options) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/slack_messaging/send.rb', line 8 def execute(args, ) if args.empty? = SlackMessaging::RandomMessage.acquire_random_quote distribute_notification(, [:service]) else args.each do || distribute_notification(, [:service]) end end end |