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

Input Parameter for Time Picker widget.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeInput

Returns a new instance of TimeInput.



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

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

Instance Attribute Details

#hoursFixnum

Corresponds to the JSON property hours

Returns:

  • (Fixnum)


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

def hours
  @hours
end

#minutesFixnum

Corresponds to the JSON property minutes

Returns:

  • (Fixnum)


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

def minutes
  @minutes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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