Class: Google::Apis::FormsV1::DateQuestion
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::DateQuestion
- 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 date question. Date questions default to just month + day.
Instance Attribute Summary collapse
-
#include_time ⇒ Boolean
(also: #include_time?)
Whether to include the time as part of the question.
-
#include_year ⇒ Boolean
(also: #include_year?)
Whether to include the year as part of the question.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DateQuestion
constructor
A new instance of DateQuestion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DateQuestion
Returns a new instance of DateQuestion.
331 332 333 |
# File 'lib/google/apis/forms_v1/classes.rb', line 331 def initialize(**args) update!(**args) end |
Instance Attribute Details
#include_time ⇒ Boolean Also known as: include_time?
Whether to include the time as part of the question.
Corresponds to the JSON property includeTime
322 323 324 |
# File 'lib/google/apis/forms_v1/classes.rb', line 322 def include_time @include_time end |
#include_year ⇒ Boolean Also known as: include_year?
Whether to include the year as part of the question.
Corresponds to the JSON property includeYear
328 329 330 |
# File 'lib/google/apis/forms_v1/classes.rb', line 328 def include_year @include_year end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
336 337 338 339 |
# File 'lib/google/apis/forms_v1/classes.rb', line 336 def update!(**args) @include_time = args[:include_time] if args.key?(:include_time) @include_year = args[:include_year] if args.key?(:include_year) end |