Class: Xronor::DSL::Default
- Inherits:
-
Object
- Object
- Xronor::DSL::Default
- Defined in:
- lib/xronor/dsl/default.rb
Constant Summary collapse
- DEFAULT_TIMEZONE =
"UTC"
Instance Method Summary collapse
-
#initialize(&block) ⇒ Default
constructor
A new instance of Default.
- #result ⇒ Object
Constructor Details
#initialize(&block) ⇒ Default
Returns a new instance of Default.
6 7 8 9 10 11 12 13 14 |
# File 'lib/xronor/dsl/default.rb', line 6 def initialize(&block) @result = OpenStruct.new( cron_timezone: DEFAULT_TIMEZONE, prefix: "", timezone: DEFAULT_TIMEZONE, ) instance_eval(&block) end |
Instance Method Details
#result ⇒ Object
22 23 24 |
# File 'lib/xronor/dsl/default.rb', line 22 def result @result end |