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

Returns a new instance of ShareLocationAction.



2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
# File 'lib/ruby-macrodroid.rb', line 2507

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