Class: UDPCommandAction

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

Overview

Category: Messaging

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 inherited from MacroObject

#to_h

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={})

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

  super(options.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