Class: UDPCommandAction

Inherits:
MessagingAction show all
Defined in:
lib/ruby-macrodroid.rb

Overview

Category: Messaging

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ UDPCommandAction

Returns a new instance of UDPCommandAction.



2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
# File 'lib/ruby-macrodroid.rb', line 2474

def initialize(h={})

  options = {
    destination: '',
    message: '',
    port: 1024
  }

  super(options.merge h)

end