Class: SendEmailAction
- Inherits:
-
MessagingAction
- Object
- MacroObject
- Action
- MessagingAction
- SendEmailAction
- Defined in:
- lib/ruby-macrodroid/actions.rb
Overview
Category: Messaging
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ SendEmailAction
constructor
A new instance of SendEmailAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SendEmailAction
Returns a new instance of SendEmailAction.
1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 |
# File 'lib/ruby-macrodroid/actions.rb', line 1589 def initialize(h={}) = { subject: '', body: '', email_address: '', from_email_address: '', attach_user_log: false, attach_log: false, send_option: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
1605 1606 1607 |
# File 'lib/ruby-macrodroid/actions.rb', line 1605 def to_s(colour: false) 'SendEmailAction ' + @h.inspect end |