Class: BluetoothTrigger
- Inherits:
-
Trigger
- Object
- MacroObject
- Trigger
- BluetoothTrigger
- Defined in:
- lib/ruby-macrodroid/triggers.rb
Overview
Category: Connectivity
Instance Attribute Summary
Attributes inherited from Trigger
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ BluetoothTrigger
constructor
A new instance of BluetoothTrigger.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Trigger
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ BluetoothTrigger
Returns a new instance of BluetoothTrigger.
455 456 457 458 459 460 461 462 463 464 465 |
# File 'lib/ruby-macrodroid/triggers.rb', line 455 def initialize(h={}) = { device_name: 'Any Device', bt_state: 0, any_device: false } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
467 468 469 |
# File 'lib/ruby-macrodroid/triggers.rb', line 467 def to_s(colour: false) 'BluetoothTrigger ' + @h.inspect end |