Class: Google::Apis::ChatV1::TimeZone

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb

Overview

The timezone ID and offset from Coordinated Universal Time (UTC). Not supported by Chat apps.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeZone

Returns a new instance of TimeZone.



2914
2915
2916
# File 'lib/google/apis/chat_v1/classes.rb', line 2914

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#idString

The IANA TZ time zone database code, such as "America/Toronto". Corresponds to the JSON property id

Returns:

  • (String)


2906
2907
2908
# File 'lib/google/apis/chat_v1/classes.rb', line 2906

def id
  @id
end

#offsetFixnum

The user timezone offset, in milliseconds, from Coordinated Universal Time ( UTC). Corresponds to the JSON property offset

Returns:

  • (Fixnum)


2912
2913
2914
# File 'lib/google/apis/chat_v1/classes.rb', line 2912

def offset
  @offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2919
2920
2921
2922
# File 'lib/google/apis/chat_v1/classes.rb', line 2919

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @offset = args[:offset] if args.key?(:offset)
end