Class: WatchDoge::Notification::Mattermost
- Defined in:
- lib/watchdoge/notification/mattermost.rb
Instance Method Summary collapse
- #flush ⇒ Object
-
#initialize(args) ⇒ Mattermost
constructor
A new instance of Mattermost.
Methods inherited from Base
Constructor Details
#initialize(args) ⇒ Mattermost
Returns a new instance of Mattermost.
10 11 12 13 14 15 16 |
# File 'lib/watchdoge/notification/mattermost.rb', line 10 def initialize args super @host = args[:host] @channel_id = args[:channel_id] @auth_token = args[:auth_token] end |
Instance Method Details
#flush ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/watchdoge/notification/mattermost.rb', line 18 def flush .each do || case when String post () when ChunkyPNG::Image post_file () when WatchDoge::PixelTest post_file (.diff) end end = [] end |