Class: GeolocationTimezone

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#currentTimeObject (readonly)

Returns the value of attribute currentTime.



5
6
7
# File 'lib/ipgeolocation_io/GeolocationTimezone.rb', line 5

def currentTime
  @currentTime
end

#dstSavingsObject (readonly)

Returns the value of attribute dstSavings.



7
8
9
# File 'lib/ipgeolocation_io/GeolocationTimezone.rb', line 7

def dstSavings
  @dstSavings
end

#isDSTObject (readonly)

Returns the value of attribute isDST.



6
7
8
# File 'lib/ipgeolocation_io/GeolocationTimezone.rb', line 6

def isDST
  @isDST
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/ipgeolocation_io/GeolocationTimezone.rb', line 3

def name
  @name
end

#offsetObject (readonly)

Returns the value of attribute offset.



4
5
6
# File 'lib/ipgeolocation_io/GeolocationTimezone.rb', line 4

def offset
  @offset
end