Sha256: 95d7e9370926540d7302721e5c792654687446b9063f0c159c11a33bc8a7fa36

Contents?: true

Size: 468 Bytes

Versions: 3

Compression:

Stored size: 468 Bytes

Contents

module NagiosHerald
  class Formatter
    class Example < NagiosHerald::Formatter

    # ovrerride Formatter::Base#additional_details
    def additional_details
      section = __method__  # content section is named after the method
      html = ""
      text = ""
      text += "Example text"
      html += "Example <b>HTML</b>"
      add_text(section, text)
      add_html(section, html)
      line_break(section)    # trailing line break
    end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nagios-herald-0.0.4 lib/nagios-herald/formatters/example.rb
nagios-herald-0.0.3 lib/nagios-herald/formatters/example.rb
nagios-herald-0.0.2 lib/nagios-herald/formatters/example.rb