Class: Zonebie::Backends::TZInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/zonebie/backends/tzinfo.rb

Class Method Summary collapse

Class Method Details

.nameObject



11
12
13
# File 'lib/zonebie/backends/tzinfo.rb', line 11

def name
  :tzinfo
end

.usable?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/zonebie/backends/tzinfo.rb', line 23

def usable?
  defined?(::TZInfo)
end

.zone=(zone) ⇒ Object



19
20
21
# File 'lib/zonebie/backends/tzinfo.rb', line 19

def zone=(zone)
  $stderr.puts("[Zonebie] It is not possible to set a global timezone with `tzinfo`")
end

.zonesObject



15
16
17
# File 'lib/zonebie/backends/tzinfo.rb', line 15

def zones
  ::TZInfo::Timezone.all.map(&:identifier)
end