Module: Pipedream::Dsl::Schedule
- Included in:
- Schedule
- Defined in:
- lib/pipedream/dsl/schedule.rb
Constant Summary collapse
- PROPERTIES =
%w[ description event_pattern name role_arn schedule_expression state targets ]
Instance Method Summary collapse
Instance Method Details
#cron(expression) ⇒ Object
22 23 24 |
# File 'lib/pipedream/dsl/schedule.rb', line 22 def cron(expression) @schedule_expression = "cron(#{expression})" end |
#rate(period) ⇒ Object
18 19 20 |
# File 'lib/pipedream/dsl/schedule.rb', line 18 def rate(period) @schedule_expression = "rate(#{period})" end |
#rule_event(props = {}) ⇒ Object
26 27 28 |
# File 'lib/pipedream/dsl/schedule.rb', line 26 def rule_event(props={}) @rule_event_props = props end |