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. The id is the tz database time zones such as " America/Toronto". The user timezone offset, in milliseconds, from Coordinated Universal Time (UTC).
Instance Attribute Summary collapse
-
#id ⇒ String
Corresponds to the JSON property
id. -
#offset ⇒ Fixnum
Corresponds to the JSON property
offset.
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.
2792 2793 2794 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2792 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Corresponds to the JSON property id
2785 2786 2787 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2785 def id @id end |
#offset ⇒ Fixnum
Corresponds to the JSON property offset
2790 2791 2792 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2790 def offset @offset end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2797 2798 2799 2800 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2797 def update!(**args) @id = args[:id] if args.key?(:id) @offset = args[:offset] if args.key?(:offset) end |