Class: SetBluetoothAction
- Inherits:
- 
      ConnectivityAction
      
        - Object
- MacroObject
- Action
- ConnectivityAction
- SetBluetoothAction
 
- Defined in:
- lib/ruby-macrodroid/actions.rb,
 lib/ruby-macrodroid/actions.rb
Overview
Category: Connectivity
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
- 
  
    
      #initialize(h = {})  ⇒ SetBluetoothAction 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of SetBluetoothAction. 
- #to_s(colour: false, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods included from ObjectX
#action_to_object, #object_create, #varify
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SetBluetoothAction
Returns a new instance of SetBluetoothAction.
| 833 834 835 836 837 838 839 840 841 842 | # File 'lib/ruby-macrodroid/actions.rb', line 833 def initialize(h={}) = { device_name: '', state: 0 } super(.merge h) end | 
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
| 844 845 846 | # File 'lib/ruby-macrodroid/actions.rb', line 844 def to_s(colour: false, indent: 0) 'SetBluetoothAction ' + @h.inspect end |