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, #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.



2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
# File 'lib/ruby-macrodroid.rb', line 2420

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