class StatusCat::Config

Constants

NIL_PROC

Attributes

authenticate[RW]
authorize[RW]
enabled[RW]
from[RW]
layout[RW]
noreply[RW]
subject[RW]
to[RW]

Public Class Methods

new() click to toggle source
# File lib/status_cat/config.rb, line 14
def initialize
  descendants = StatusCat::Checkers::Base.descendants
  @enabled = descendants.map { |klass| StatusCat::Checkers::Base.class_to_name(klass) }.sort
end

Public Instance Methods

authenticate_with(&blk) click to toggle source
# File lib/status_cat/config.rb, line 19
def authenticate_with(&blk)
  @authenticate = blk if blk
  @authenticate || NIL_PROC
end
authorize_with(&block) click to toggle source
# File lib/status_cat/config.rb, line 24
def authorize_with(&block)
  @authorize = block if block
  @authorize || NIL_PROC
end