Module: Jets::Event::Dsl::IotEvent
- Defined in:
- lib/jets/event/dsl/iot_event.rb
Instance Method Summary collapse
-
#iot_event(props = {}) ⇒ Object
The user must at least pass in an SQL statement Returns topic_props interface method.
Instance Method Details
#iot_event(props = {}) ⇒ Object
The user must at least pass in an SQL statement Returns topic_props interface method
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/jets/event/dsl/iot_event.rb', line 6 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 |