Class: SimpleServerMonitoring::Reporter::Report
- Inherits:
-
Object
- Object
- SimpleServerMonitoring::Reporter::Report
- Defined in:
- lib/simple_server_monitoring/reporter.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#status ⇒ Object
Returns the value of attribute status.
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Report
constructor
A new instance of Report.
- #to_s ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Report
Returns a new instance of Report.
60 61 62 |
# File 'lib/simple_server_monitoring/reporter.rb', line 60 def initialize( = {}) self.subject, self.body, self.status = .values_at(:subject, :body, :status) end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
58 59 60 |
# File 'lib/simple_server_monitoring/reporter.rb', line 58 def body @body end |
#status ⇒ Object
Returns the value of attribute status.
58 59 60 |
# File 'lib/simple_server_monitoring/reporter.rb', line 58 def status @status end |
#subject ⇒ Object
Returns the value of attribute subject.
58 59 60 |
# File 'lib/simple_server_monitoring/reporter.rb', line 58 def subject @subject end |
Instance Method Details
#to_s ⇒ Object
64 65 66 |
# File 'lib/simple_server_monitoring/reporter.rb', line 64 def to_s {status: status, subject: subject, body: body}.to_s end |