Module: Sidetiq::Timezone::Clock

Included in:
Clock
Defined in:
lib/sidetiq/timezone/clock.rb

Overview

Adds an accessor ‘time_zone`.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#time_zoneObject

Returns the value of attribute time_zone.



7
8
9
# File 'lib/sidetiq/timezone/clock.rb', line 7

def time_zone
  @time_zone
end

Instance Method Details

#gettimeObject



14
15
16
17
18
19
20
# File 'lib/sidetiq/timezone/clock.rb', line 14

def gettime
  if @time_zone
    @time_zone.now
  else
    super
  end
end