Class: SendSMSAction

Inherits:
MessagingAction show all
Defined in:
lib/ruby-macrodroid.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, #to_s

Constructor Details

#initialize(h = {}) ⇒ SendSMSAction

Returns a new instance of SendSMSAction.



3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
# File 'lib/ruby-macrodroid.rb', line 3514

def initialize(h={})

  options = {
    number: '',
    contact: {:m_id=>"Hardwired_Number", :m_lookupKey=>"Hardwired_Number", :m_name=>"[Select Number]"},
    message_content: '',
    add_to_message_log: false,
    pre_populate: false,
    sim_id: 0
  }

  super(options.merge h)

end