Class: MailToHipChat::MessageChutes::Airbrake
- Inherits:
-
Object
- Object
- MailToHipChat::MessageChutes::Airbrake
- Includes:
- MailToHipChat::MessageChute
- Defined in:
- lib/mail_to_hip_chat/message_chutes/airbrake.rb
Overview
Takes exception notification emails from Airbrake and sends them to the configured HipChat rooms.
Instance Method Summary collapse
- #call(params) ⇒ Object
-
#initialize(opts) ⇒ Airbrake
constructor
A new instance of Airbrake.
Methods included from MailToHipChat::MessageChute
Constructor Details
#initialize(opts) ⇒ Airbrake
Returns a new instance of Airbrake.
10 11 12 |
# File 'lib/mail_to_hip_chat/message_chutes/airbrake.rb', line 10 def initialize(opts) initialize_hipchat_opts(opts) end |
Instance Method Details
#call(params) ⇒ Object
14 15 16 17 |
# File 'lib/mail_to_hip_chat/message_chutes/airbrake.rb', line 14 def call(params) return false unless (params["plain"]) true end |