Methods

Class/Module Index [+]

Quicksearch

Backup::Notifier::Hipchat

Attributes

failure_color[RW]

The background color of an error message. One of :yellow, :red, :green, :purple, or :random. (default: yellow)

from[RW]

Who the notification should appear from

notify_users[RW]

Notify users in the room

rooms_notified[RW]

The rooms that should be notified

success_color[RW]

The background color of a success message. One of :yellow, :red, :green, :purple, or :random. (default: yellow)

token[RW]

The Hipchat API token

warning_color[RW]

The background color of a warning message. One of :yellow, :red, :green, :purple, or :random. (default: yellow)

Public Class Methods

new(model, &block) click to toggle source
# File lib/backup/notifier/hipchat.rb, line 38
def initialize(model, &block)
  super
  instance_eval(&block) if block_given?

  @notify_users   ||= false
  @rooms_notified ||= []
  @success_color  ||= 'yellow'
  @warning_color  ||= 'yellow'
  @failure_color  ||= 'yellow'
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.