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. 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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeZone

Returns a new instance of TimeZone.



2871
2872
2873
# File 'lib/google/apis/chat_v1/classes.rb', line 2871

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

Instance Attribute Details

#idString

Corresponds to the JSON property id

Returns:

  • (String)


2864
2865
2866
# File 'lib/google/apis/chat_v1/classes.rb', line 2864

def id
  @id
end

#offsetFixnum

Corresponds to the JSON property offset

Returns:

  • (Fixnum)


2869
2870
2871
# File 'lib/google/apis/chat_v1/classes.rb', line 2869

def offset
  @offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2876
2877
2878
2879
# File 'lib/google/apis/chat_v1/classes.rb', line 2876

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