Class: Google::Apis::FormsV1::DateQuestion

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 date question. Date questions default to just month + day.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_timeBoolean Also known as: include_time?

Whether to include the time as part of the question. Corresponds to the JSON property includeTime

Returns:

  • (Boolean)


322
323
324
# File 'lib/google/apis/forms_v1/classes.rb', line 322

def include_time
  @include_time
end

#include_yearBoolean Also known as: include_year?

Whether to include the year as part of the question. Corresponds to the JSON property includeYear

Returns:

  • (Boolean)


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