Class: Geonames::Timezone
- Inherits:
-
Object
- Object
- Geonames::Timezone
- Defined in:
- lib/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.
-
#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.
23 24 25 |
# File 'lib/timezone.rb', line 23 def dst_offset @dst_offset end |
#gmt_offset ⇒ Object
Returns the value of attribute gmt_offset.
22 23 24 |
# File 'lib/timezone.rb', line 22 def gmt_offset @gmt_offset end |
#timezone_id ⇒ Object
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
#tzinfo ⇒ Object
27 28 29 |
# File 'lib/timezone.rb', line 27 def tzinfo TZInfo::Timezone.get(timezone_id) end |