class SystemdMon::Formatters::Base

Attributes

unit[RW]

Public Class Methods

new(unit) click to toggle source
# File lib/systemd_mon/formatters/base.rb, line 3
def initialize(unit)
  self.unit = unit
end

Public Instance Methods

as_html() click to toggle source
# File lib/systemd_mon/formatters/base.rb, line 7
def as_html
  raise "The formatter #{self.class} does not provide an html formatted string"
end
as_text() click to toggle source
# File lib/systemd_mon/formatters/base.rb, line 11
def as_text
  raise "The formatter #{self.class} does not provide a plain text string"
end