Class: TrackerHub::Request::Notification::HipChat

Inherits:
Object
  • Object
show all
Defined in:
lib/tracker_hub/request/notification/hip_chat.rb

Overview

Service to send notifications to when an error occured during the log process

Constant Summary collapse

API_VERSION =

HipChat API version to call by default

'v2'.freeze

Instance Method Summary collapse

Instance Method Details

#send_message(msg, args = {}) ⇒ Boolean

Send a notification message

Examples:

> notifier = TrackerHub::Request::Notification::HipChat.new(token, 'room', 'username')
> notifier.send_message('my message')

Parameters:

Returns:

  • (Boolean)


21
22
23
# File 'lib/tracker_hub/request/notification/hip_chat.rb', line 21

def send_message(msg, args = {})
  client[room].send(username, msg, options.merge(args))
end