Class: Google::Apis::ChatV1::TimeInput

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

Time input values. Not supported by Chat apps.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeInput

Returns a new instance of TimeInput.



2970
2971
2972
# File 'lib/google/apis/chat_v1/classes.rb', line 2970

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

Instance Attribute Details

#hoursFixnum

The hour on a 24-hour clock. Corresponds to the JSON property hours

Returns:

  • (Fixnum)


2963
2964
2965
# File 'lib/google/apis/chat_v1/classes.rb', line 2963

def hours
  @hours
end

#minutesFixnum

The number of minutes past the hour. Valid values are 0 to 59. Corresponds to the JSON property minutes

Returns:

  • (Fixnum)


2968
2969
2970
# File 'lib/google/apis/chat_v1/classes.rb', line 2968

def minutes
  @minutes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2975
2976
2977
2978
# File 'lib/google/apis/chat_v1/classes.rb', line 2975

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