Class: Geonames::Timezone
- Inherits:
-
Object
- Object
- Geonames::Timezone
- Defined in:
- lib/geonames/timezone.rb
Instance Attribute Summary collapse
-
#dst_offset ⇒ Object
Returns the value of attribute dst_offset.
-
#gmt_offset ⇒ Object
Returns the value of attribute gmt_offset.
-
#raw_offset ⇒ Object
Returns the value of attribute raw_offset.
-
#timezone_id ⇒ Object
Returns the value of attribute timezone_id.
Instance Method Summary collapse
Instance Attribute Details
#dst_offset ⇒ Object
Returns the value of attribute dst_offset.
22 23 24 |
# File 'lib/geonames/timezone.rb', line 22 def dst_offset @dst_offset end |
#gmt_offset ⇒ Object
Returns the value of attribute gmt_offset.
22 23 24 |
# File 'lib/geonames/timezone.rb', line 22 def gmt_offset @gmt_offset end |
#raw_offset ⇒ Object
Returns the value of attribute raw_offset.
22 23 24 |
# File 'lib/geonames/timezone.rb', line 22 def raw_offset @raw_offset end |
#timezone_id ⇒ Object
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
#tzinfo ⇒ Object
24 25 26 |
# File 'lib/geonames/timezone.rb', line 24 def tzinfo TZInfo::Timezone.get(timezone_id) end |