Class: ShareLocationAction

Inherits:
LocationAction show all
Defined in:
lib/ruby-macrodroid.rb,
lib/ruby-macrodroid.rb

Overview

Category: Location

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ ShareLocationAction

Returns a new instance of ShareLocationAction.



1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
# File 'lib/ruby-macrodroid.rb', line 1618

def initialize(h={})
  
  super()

  options = {
    email: '',
    variable: {:m_stringValue=>"", :m_name=>"", 
               :m_decimalValue=>0.0, :isLocal=>true, :m_booleanValue=>false, 
               :excludeFromLog=>false, :m_intValue=>0, :m_type=>2},
    sim_id: 0,
    output_channel: 5,
    old_variable_format: true
  }

  super(options.merge h)

end