class ShareLocationAction
Category: Location
Public Class Methods
new(obj=nil)
click to toggle source
Calls superclass method
LocationAction::new
# File lib/ruby-macrodroid/actions.rb, line 1707 def initialize(obj=nil) h = if obj.is_a? Hash then obj elsif obj.is_a? Array e, macro = obj {variable: macro.set_var(e.text('item/description').to_s)} end #super() options = { email: '', variable: {:string_value=>"", :name=>"", :decimal_value=>0.0, :is_local=>true, :boolean_value=>false, :exclude_from_log=>false, :int_value=>0, :type=>2}, sim_id: 0, output_channel: 5, old_variable_format: true } #options[:variable].merge! h super(options.merge h) end
Public Instance Methods
to_s(colour: false, indent: 0)
click to toggle source
Calls superclass method
MacroObject#to_s
# File lib/ruby-macrodroid/actions.rb, line 1733 def to_s(colour: false, indent: 0) @s = 'Share Location' + "\n" + @h[:variable][:name] # + @h.inspect super() end
Also aliased as: to_summary