Class: Google::Apis::ChatV1::TimeZone
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::TimeZone
- 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
-
#id ⇒ String
The IANA TZ time zone database code, such as "America/Toronto".
-
#offset ⇒ Fixnum
The user timezone offset, in milliseconds, from Coordinated Universal Time ( UTC).
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeZone
constructor
A new instance of TimeZone.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TimeZone
Returns a new instance of TimeZone.
3753 3754 3755 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3753 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
The IANA TZ time zone database code, such
as "America/Toronto".
Corresponds to the JSON property id
3745 3746 3747 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3745 def id @id end |
#offset ⇒ Fixnum
The user timezone offset, in milliseconds, from Coordinated Universal Time (
UTC).
Corresponds to the JSON property offset
3751 3752 3753 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3751 def offset @offset end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3758 3759 3760 3761 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3758 def update!(**args) @id = args[:id] if args.key?(:id) @offset = args[:offset] if args.key?(:offset) end |