Module: Schedulable::ScheduleSupport

Included in:
Schedule
Defined in:
lib/schedulable/schedule_support.rb

Class Method Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &block) ⇒ Object



13
14
15
16
17
# File 'lib/schedulable/schedule_support.rb', line 13

def method_missing(meth, *args, &block)
  if @schedule
    @schedule.send(meth, *args, &block)
  end
end

Class Method Details

.param_namesObject



19
20
21
# File 'lib/schedulable/schedule_support.rb', line 19

def self.param_names
  [:id, :date, :time, :rule, :until, :count, :interval, days: [], day_of_week: [monday: [], tuesday: [], wednesday: [], thursday: [], friday: [], saturday: [], sunday: []]]
end

Instance Method Details

#to_icecubeObject



5
6
7
# File 'lib/schedulable/schedule_support.rb', line 5

def to_icecube
  return @schedule
end

#to_sObject



9
10
11
# File 'lib/schedulable/schedule_support.rb', line 9

def to_s
  return @schedule.to_s
end