Class: Google::Apis::FormsV1::TimeQuestion

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/forms_v1/classes.rb,
lib/google/apis/forms_v1/representations.rb,
lib/google/apis/forms_v1/representations.rb

Overview

A time question.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeQuestion

Returns a new instance of TimeQuestion.



1527
1528
1529
# File 'lib/google/apis/forms_v1/classes.rb', line 1527

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

Instance Attribute Details

#durationBoolean Also known as: duration?

true if the question is about an elapsed time. Otherwise it is about a time of day. Corresponds to the JSON property duration

Returns:

  • (Boolean)


1524
1525
1526
# File 'lib/google/apis/forms_v1/classes.rb', line 1524

def duration
  @duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1532
1533
1534
# File 'lib/google/apis/forms_v1/classes.rb', line 1532

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