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). Only supported for the event types CARD_CLICKED and SUBMIT_DIALOG.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeZone

Returns a new instance of TimeZone.



5210
5211
5212
# File 'lib/google/apis/chat_v1/classes.rb', line 5210

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)


5202
5203
5204
# File 'lib/google/apis/chat_v1/classes.rb', line 5202

def id
  @id
end

#offsetFixnum

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

Returns:

  • (Fixnum)


5208
5209
5210
# File 'lib/google/apis/chat_v1/classes.rb', line 5208

def offset
  @offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5215
5216
5217
5218
# File 'lib/google/apis/chat_v1/classes.rb', line 5215

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