Class: Google::Apis::FormsV1::TimeQuestion
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::TimeQuestion
- 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
-
#duration ⇒ Boolean
(also: #duration?)
true
if the question is about an elapsed time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeQuestion
constructor
A new instance of TimeQuestion.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#duration ⇒ Boolean 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
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 |