Class: WhoopsNotifier::Report
- Inherits:
-
Object
- Object
- WhoopsNotifier::Report
- Defined in:
- lib/whoops_notifier/report.rb
Constant Summary collapse
- ATTRIBUTES =
[:event_type, :service, :environment, :message, :event_group_identifier, :event_time, :details]
Instance Method Summary collapse
-
#initialize ⇒ Report
constructor
A new instance of Report.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ Report
Returns a new instance of Report.
8 9 10 |
# File 'lib/whoops_notifier/report.rb', line 8 def initialize self.event_time = Time.now end |
Instance Method Details
#to_hash ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/whoops_notifier/report.rb', line 12 def to_hash h = {} ATTRIBUTES.each do |attribute| h[attribute] = self.send(attribute) end h end |