class Noticent::Definitions::Alert::DefaultValue

Attributes

channel[R]
value[RW]

Public Class Methods

new(alert, channel, value) click to toggle source
# File lib/noticent/definitions/alert.rb, line 122
def initialize(alert, channel, value)
  @alert = alert
  @channel = channel
  @value = value
end

Public Instance Methods

on(channel) click to toggle source
# File lib/noticent/definitions/alert.rb, line 128
def on(channel)
  raise BadConfiguration, "no channel named '#{channel}'" if @alert.config.channels[channel].nil?

  @channel = channel

  self
end