class SayAction
This file includes the following classes:
* SayAction * WebhookAction * MotionTrigger * FrequencyConstraint * TimeConstraint * TriggersNlp - selects the trigger to use * ActionsNlp - selects the action to use * ConstraintsNlp - selects the constraint to use * Macro - contains the triggers, actions, and constraints * MacroHub - contains the macros
Public Class Methods
new(s=nil, msg: s)
click to toggle source
# File lib/macrohub.rb, line 25 def initialize(s=nil, msg: s) @s = msg end
Public Instance Methods
invoke()
click to toggle source
# File lib/macrohub.rb, line 29 def invoke() "say: %s" % @s end
to_node()
click to toggle source
# File lib/macrohub.rb, line 33 def to_node() Rexle::Element.new(:action, attributes: {type: :say, text: @s}) end
to_rowx()
click to toggle source
# File lib/macrohub.rb, line 37 def to_rowx() "action: say '%s'" % @s end