Class: GeolocationTimezone
- Inherits:
-
Object
- Object
- GeolocationTimezone
- Defined in:
- lib/ipgeolocation_io/GeolocationTimezone.rb
Instance Attribute Summary collapse
-
#currentTime ⇒ Object
readonly
Returns the value of attribute currentTime.
-
#dstSavings ⇒ Object
readonly
Returns the value of attribute dstSavings.
-
#isDST ⇒ Object
readonly
Returns the value of attribute isDST.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
Instance Method Summary collapse
-
#initialize(json) ⇒ GeolocationTimezone
constructor
A new instance of GeolocationTimezone.
Constructor Details
#initialize(json) ⇒ GeolocationTimezone
Returns a new instance of GeolocationTimezone.
9 10 11 12 13 14 15 |
# File 'lib/ipgeolocation_io/GeolocationTimezone.rb', line 9 def initialize(json) @name = json["name"]; @offset = json["offset"]; @currentTime = json["current_time"]; @isDST = json["is_dst"]; @dstSavings = json["dst_savings"]; end |
Instance Attribute Details
#currentTime ⇒ Object (readonly)
Returns the value of attribute currentTime.
5 6 7 |
# File 'lib/ipgeolocation_io/GeolocationTimezone.rb', line 5 def currentTime @currentTime end |
#dstSavings ⇒ Object (readonly)
Returns the value of attribute dstSavings.
7 8 9 |
# File 'lib/ipgeolocation_io/GeolocationTimezone.rb', line 7 def dstSavings @dstSavings end |
#isDST ⇒ Object (readonly)
Returns the value of attribute isDST.
6 7 8 |
# File 'lib/ipgeolocation_io/GeolocationTimezone.rb', line 6 def isDST @isDST end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/ipgeolocation_io/GeolocationTimezone.rb', line 3 def name @name end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
4 5 6 |
# File 'lib/ipgeolocation_io/GeolocationTimezone.rb', line 4 def offset @offset end |