Class: WebHookTrigger

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

Overview

Category: Connectivity

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ WebHookTrigger

Returns a new instance of WebHookTrigger.



1263
1264
1265
1266
1267
1268
1269
1270
1271
# File 'lib/ruby-macrodroid.rb', line 1263

def initialize(h={})

  options = {
    identifier: ''
  }

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



1273
1274
1275
# File 'lib/ruby-macrodroid.rb', line 1273

def to_s(colour: false)
  'WebHookTrigger ' + @h.inspect
end