class SimpleServerMonitoring::Reporter::Report

Attributes

body[RW]
status[RW]
subject[RW]

Public Class Methods

new(options = {}) click to toggle source
# File lib/simple_server_monitoring/reporter.rb, line 60
def initialize(options = {})
  self.subject, self.body, self.status = options.values_at(:subject, :body, :status)
end

Public Instance Methods

to_s() click to toggle source
# File lib/simple_server_monitoring/reporter.rb, line 64
def to_s
  {status: status, subject: subject, body: body}.to_s
end