Sha256: dd0c9851fa20bb524b0bd0a85a6cc7620e4a168a67b4e18437b3c0e1235a7466
Contents?: true
Size: 468 Bytes
Versions: 4
Compression:
Stored size: 468 Bytes
Contents
module Jets::Event::Dsl module IotEvent # The user must at least pass in an SQL statement # Returns topic_props # interface method def iot_event(props = {}) if props.is_a?(String) # SQL Statement props = {Sql: props} {TopicRulePayload: props} elsif props.key?(:TopicRulePayload) # full properties structure props else # just the TopicRulePayload {TopicRulePayload: props} end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jets-6.0.5 | lib/jets/event/dsl/iot_event.rb |
jets-6.0.4 | lib/jets/event/dsl/iot_event.rb |
jets-6.0.3 | lib/jets/event/dsl/iot_event.rb |
jets-6.0.2 | lib/jets/event/dsl/iot_event.rb |