Class: SendEmailAction

Inherits:
MessagingAction show all
Defined in:
lib/ruby-macrodroid/actions.rb

Overview

Category: Messaging

Instance Attribute Summary

Attributes inherited from Action

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h

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={})

  options = {
    subject: '',
    body: '',
    email_address: '',
    from_email_address: '',
    attach_user_log: false,
    attach_log: false,
    send_option: 0
  }

  super(options.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