Class: Google::Apis::ConsumersurveysV2::SurveyQuestion

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/consumersurveys_v2/classes.rb,
generated/google/apis/consumersurveys_v2/representations.rb,
generated/google/apis/consumersurveys_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SurveyQuestion

Returns a new instance of SurveyQuestion



483
484
485
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 483

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

Instance Attribute Details

#answer_orderString

Corresponds to the JSON property answerOrder

Returns:

  • (String)


392
393
394
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 392

def answer_order
  @answer_order
end

#answersArray<String>

Corresponds to the JSON property answers

Returns:

  • (Array<String>)


397
398
399
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 397

def answers
  @answers
end

#has_otherBoolean Also known as: has_other?

Corresponds to the JSON property hasOther

Returns:

  • (Boolean)


402
403
404
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 402

def has_other
  @has_other
end

#high_value_labelString

Corresponds to the JSON property highValueLabel

Returns:

  • (String)


408
409
410
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 408

def high_value_label
  @high_value_label
end

#imagesArray<Google::Apis::ConsumersurveysV2::SurveyQuestionImage>

Corresponds to the JSON property images



413
414
415
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 413

def images
  @images
end

#last_answer_position_pinnedBoolean Also known as: last_answer_position_pinned?

Corresponds to the JSON property lastAnswerPositionPinned

Returns:

  • (Boolean)


418
419
420
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 418

def last_answer_position_pinned
  @last_answer_position_pinned
end

#low_value_labelString

Corresponds to the JSON property lowValueLabel

Returns:

  • (String)


424
425
426
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 424

def low_value_label
  @low_value_label
end

#must_pick_suggestionBoolean Also known as: must_pick_suggestion?

Corresponds to the JSON property mustPickSuggestion

Returns:

  • (Boolean)


429
430
431
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 429

def must_pick_suggestion
  @must_pick_suggestion
end

#num_starsString

Corresponds to the JSON property numStars

Returns:

  • (String)


435
436
437
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 435

def num_stars
  @num_stars
end

#open_text_placeholderString

Corresponds to the JSON property openTextPlaceholder

Returns:

  • (String)


440
441
442
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 440

def open_text_placeholder
  @open_text_placeholder
end

#open_text_suggestionsArray<String>

Corresponds to the JSON property openTextSuggestions

Returns:

  • (Array<String>)


445
446
447
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 445

def open_text_suggestions
  @open_text_suggestions
end

#questionString

Corresponds to the JSON property question

Returns:

  • (String)


450
451
452
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 450

def question
  @question
end

#sentiment_textString

Corresponds to the JSON property sentimentText

Returns:

  • (String)


455
456
457
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 455

def sentiment_text
  @sentiment_text
end

#single_line_responseBoolean Also known as: single_line_response?

Corresponds to the JSON property singleLineResponse

Returns:

  • (Boolean)


460
461
462
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 460

def single_line_response
  @single_line_response
end

#threshold_answersArray<String>

Corresponds to the JSON property thresholdAnswers

Returns:

  • (Array<String>)


466
467
468
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 466

def threshold_answers
  @threshold_answers
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


471
472
473
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 471

def type
  @type
end

#unit_of_measurement_labelString

Corresponds to the JSON property unitOfMeasurementLabel

Returns:

  • (String)


476
477
478
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 476

def unit_of_measurement_label
  @unit_of_measurement_label
end

#video_idString

Corresponds to the JSON property videoId

Returns:

  • (String)


481
482
483
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 481

def video_id
  @video_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 488

def update!(**args)
  @answer_order = args[:answer_order] if args.key?(:answer_order)
  @answers = args[:answers] if args.key?(:answers)
  @has_other = args[:has_other] if args.key?(:has_other)
  @high_value_label = args[:high_value_label] if args.key?(:high_value_label)
  @images = args[:images] if args.key?(:images)
  @last_answer_position_pinned = args[:last_answer_position_pinned] if args.key?(:last_answer_position_pinned)
  @low_value_label = args[:low_value_label] if args.key?(:low_value_label)
  @must_pick_suggestion = args[:must_pick_suggestion] if args.key?(:must_pick_suggestion)
  @num_stars = args[:num_stars] if args.key?(:num_stars)
  @open_text_placeholder = args[:open_text_placeholder] if args.key?(:open_text_placeholder)
  @open_text_suggestions = args[:open_text_suggestions] if args.key?(:open_text_suggestions)
  @question = args[:question] if args.key?(:question)
  @sentiment_text = args[:sentiment_text] if args.key?(:sentiment_text)
  @single_line_response = args[:single_line_response] if args.key?(:single_line_response)
  @threshold_answers = args[:threshold_answers] if args.key?(:threshold_answers)
  @type = args[:type] if args.key?(:type)
  @unit_of_measurement_label = args[:unit_of_measurement_label] if args.key?(:unit_of_measurement_label)
  @video_id = args[:video_id] if args.key?(:video_id)
end