class DucksboardReporter::Reporter

Attributes

name[RW]
options[RW]
timestamp[RW]
value[RW]

Public Class Methods

new(name, options = {}) click to toggle source
# File lib/ducksboard_reporter/reporter.rb, line 8
def initialize(name, options = {})
  @name = name
  @options = options
end

Public Instance Methods

collect() click to toggle source
# File lib/ducksboard_reporter/reporter.rb, line 18
def collect; end
start() click to toggle source
# File lib/ducksboard_reporter/reporter.rb, line 13
def start
  debug(log_format("Started"))
  async.collect
end

Private Instance Methods

log_format(msg) click to toggle source
# File lib/ducksboard_reporter/reporter.rb, line 26
def log_format(msg)
  @log_prefix ||= "Reporter #{self.class.name.split("::").last}(#{@name}): "
  @log_prefix + msg
end