Class: UDPCommandAction
- Inherits:
-
MessagingAction
- Object
- MacroObject
- Action
- MessagingAction
- UDPCommandAction
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Messaging
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ UDPCommandAction
constructor
A new instance of UDPCommandAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ UDPCommandAction
Returns a new instance of UDPCommandAction.
4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 |
# File 'lib/ruby-macrodroid.rb', line 4053 def initialize(h={}) = { destination: '', message: '', port: 1024 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
4065 4066 4067 |
# File 'lib/ruby-macrodroid.rb', line 4065 def to_s(colour: false) 'UDPCommandAction ' + @h.inspect end |