Class: ShareLocationAction
- Inherits:
-
LocationAction
- Object
- MacroObject
- Action
- LocationAction
- ShareLocationAction
- Defined in:
- lib/ruby-macrodroid/actions.rb,
lib/ruby-macrodroid/actions.rb
Overview
Category: Location
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ ShareLocationAction
constructor
A new instance of ShareLocationAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ ShareLocationAction
Returns a new instance of ShareLocationAction.
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/ruby-macrodroid/actions.rb', line 85 def initialize(h={}) super() = { 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(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
103 104 105 |
# File 'lib/ruby-macrodroid/actions.rb', line 103 def to_s(colour: false) 'ShareLocationAction ' + @h.inspect end |