Class: Geonames::Timezone

Inherits:
Object
  • Object
show all
Defined in:
lib/geonames/timezone.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dst_offsetObject

Returns the value of attribute dst_offset.



22
23
24
# File 'lib/geonames/timezone.rb', line 22

def dst_offset
  @dst_offset
end

#gmt_offsetObject

Returns the value of attribute gmt_offset.



22
23
24
# File 'lib/geonames/timezone.rb', line 22

def gmt_offset
  @gmt_offset
end

#raw_offsetObject

Returns the value of attribute raw_offset.



22
23
24
# File 'lib/geonames/timezone.rb', line 22

def raw_offset
  @raw_offset
end

#timezone_idObject

Returns the value of attribute timezone_id.



22
23
24
# File 'lib/geonames/timezone.rb', line 22

def timezone_id
  @timezone_id
end

Instance Method Details

#tzinfoObject



24
25
26
# File 'lib/geonames/timezone.rb', line 24

def tzinfo
  TZInfo::Timezone.get(timezone_id)
end