class Timezonedb::Client::Response

Attributes

abbreviation[R]
country_code[R]
dst[R]
gmt_offset[R]
message[R]
status[R]
timestamp[R]
zone_name[R]

Public Class Methods

new(response_hash) click to toggle source
# File lib/timezonedb/client/response.rb, line 23
def initialize(response_hash)
  @message      = response_hash['message']
  @country_code = response_hash['countryCode']
  @zone_name    = response_hash['zoneName']
  @abbreviation = response_hash['abbreviation']
  @gmt_offset   = response_hash['gmtOffset']
  @dst          = response_hash['dst']
  @timestamp    = response_hash['timestamp']
end