Class: Gemometer::Notifiers::Slack
- Defined in:
- lib/gemometer/notifiers/slack.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(opts) ⇒ Slack
constructor
A new instance of Slack.
- #message ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(opts) ⇒ Slack
Returns a new instance of Slack.
7 8 9 10 |
# File 'lib/gemometer/notifiers/slack.rb', line 7 def initialize(opts) @channel = opts.delete(:channel) super(opts) end |
Instance Attribute Details
#channel ⇒ Object
Returns the value of attribute channel.
5 6 7 |
# File 'lib/gemometer/notifiers/slack.rb', line 5 def channel @channel end |
Class Method Details
.mandatory_options ⇒ Object
12 13 14 |
# File 'lib/gemometer/notifiers/slack.rb', line 12 def self. [:url] end |
Instance Method Details
#message ⇒ Object
16 17 18 19 20 |
# File 'lib/gemometer/notifiers/slack.rb', line 16 def msg = "Outdated gems:\n" gems.each { |g| msg += "\n #{ruby_gems_link(g.name)} #{g.}" } msg += "\n-" end |