Class: TD::Types::TimeZone

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/time_zone.rb

Overview

Describes a time zone.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#idTD::Types::String

Unique time zone identifier.

Returns:

  • (TD::Types::String)

    the current value of id



7
8
9
# File 'lib/tdlib/types/time_zone.rb', line 7

def id
  @id
end

#nameTD::Types::String

Time zone name.

Returns:

  • (TD::Types::String)

    the current value of name



7
8
9
# File 'lib/tdlib/types/time_zone.rb', line 7

def name
  @name
end

#utc_time_offsetInteger

Current UTC time offset for the time zone.

Returns:

  • (Integer)

    the current value of utc_time_offset



7
8
9
# File 'lib/tdlib/types/time_zone.rb', line 7

def utc_time_offset
  @utc_time_offset
end