Class: SetBluetoothAction

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

Overview

Category: Connectivity

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 included from ObjectX

#action_to_object, #object_create, #varify

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ SetBluetoothAction

Returns a new instance of SetBluetoothAction.



720
721
722
723
724
725
726
727
728
729
# File 'lib/ruby-macrodroid/actions.rb', line 720

def initialize(h={})

  options = {
    device_name: '',
    state: 0
  }

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary



731
732
733
# File 'lib/ruby-macrodroid/actions.rb', line 731

def to_s(colour: false, indent: 0)
  'SetBluetoothAction ' + @h.inspect
end