Class: Geonames::Timezone

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dst_offsetObject

Returns the value of attribute dst_offset.



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

def dst_offset
  @dst_offset
end

#gmt_offsetObject

Returns the value of attribute gmt_offset.



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

def gmt_offset
  @gmt_offset
end

#timezone_idObject

Returns the value of attribute timezone_id.



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

def timezone_id
  @timezone_id
end

Instance Method Details

#tzinfoObject



27
28
29
# File 'lib/timezone.rb', line 27

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