Class: SlackMessaging::Slack
- Inherits:
-
Object
- Object
- SlackMessaging::Slack
- Defined in:
- lib/slack_messaging/slack.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/slack.rb', line 6 def end |
Class Method Details
.execute(args, options = nil) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/slack_messaging/slack.rb', line 9 def self.execute(args, =nil) if args.empty? = SlackMessaging::RandomMessage.new # generate a new random message (.get_text) else args.each do || () end end end |
.print_message(message) ⇒ Object
20 21 22 23 |
# File 'lib/slack_messaging/slack.rb', line 20 def self.() slack_job = SlackMessaging::NotifySlack.new() slack_job.perform end |