class Xronor::DSL::Default

Constants

DEFAULT_TIMEZONE

Public Class Methods

new(&block) click to toggle source
# 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

Public Instance Methods

result() click to toggle source
# File lib/xronor/dsl/default.rb, line 22
def result
  @result
end