Class: AwsAlertMonitor::Emailer
- Inherits:
-
Object
- Object
- AwsAlertMonitor::Emailer
- Defined in:
- lib/aws-alert-monitor/emailer.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Emailer
constructor
A new instance of Emailer.
- #send_email ⇒ Object
Constructor Details
#initialize(args) ⇒ Emailer
Returns a new instance of Emailer.
5 6 7 8 9 10 11 |
# File 'lib/aws-alert-monitor/emailer.rb', line 5 def initialize(args) @body = args['body'] @emailer = args['emailer'] @from = args['from'] @subject = args['subject'] @to = Array(args['to']) end |
Instance Method Details
#send_email ⇒ Object
13 14 15 |
# File 'lib/aws-alert-monitor/emailer.rb', line 13 def send_email emailer.send_email end |