Class: Google::Apis::ConsumersurveysV2::SurveyQuestion
- Inherits:
-
Object
- Object
- Google::Apis::ConsumersurveysV2::SurveyQuestion
- 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
-
#answer_order ⇒ String
Corresponds to the JSON property
answerOrder
. -
#answers ⇒ Array<String>
Corresponds to the JSON property
answers
. -
#has_other ⇒ Boolean
(also: #has_other?)
Corresponds to the JSON property
hasOther
. -
#high_value_label ⇒ String
Corresponds to the JSON property
highValueLabel
. -
#images ⇒ Array<Google::Apis::ConsumersurveysV2::SurveyQuestionImage>
Corresponds to the JSON property
images
. -
#last_answer_position_pinned ⇒ Boolean
(also: #last_answer_position_pinned?)
Corresponds to the JSON property
lastAnswerPositionPinned
. -
#low_value_label ⇒ String
Corresponds to the JSON property
lowValueLabel
. -
#must_pick_suggestion ⇒ Boolean
(also: #must_pick_suggestion?)
Corresponds to the JSON property
mustPickSuggestion
. -
#num_stars ⇒ String
Corresponds to the JSON property
numStars
. -
#open_text_placeholder ⇒ String
Corresponds to the JSON property
openTextPlaceholder
. -
#open_text_suggestions ⇒ Array<String>
Corresponds to the JSON property
openTextSuggestions
. -
#question ⇒ String
Corresponds to the JSON property
question
. -
#sentiment_text ⇒ String
Corresponds to the JSON property
sentimentText
. -
#single_line_response ⇒ Boolean
(also: #single_line_response?)
Corresponds to the JSON property
singleLineResponse
. -
#threshold_answers ⇒ Array<String>
Corresponds to the JSON property
thresholdAnswers
. -
#type ⇒ String
Corresponds to the JSON property
type
. -
#unit_of_measurement_label ⇒ String
Corresponds to the JSON property
unitOfMeasurementLabel
. -
#video_id ⇒ String
Corresponds to the JSON property
videoId
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SurveyQuestion
constructor
A new instance of SurveyQuestion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
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_order ⇒ String
Corresponds to the JSON property answerOrder
392 393 394 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 392 def answer_order @answer_order end |
#answers ⇒ Array<String>
Corresponds to the JSON property answers
397 398 399 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 397 def answers @answers end |
#has_other ⇒ Boolean Also known as: has_other?
Corresponds to the JSON property hasOther
402 403 404 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 402 def has_other @has_other end |
#high_value_label ⇒ String
Corresponds to the JSON property highValueLabel
408 409 410 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 408 def high_value_label @high_value_label end |
#images ⇒ Array<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_pinned ⇒ Boolean Also known as: last_answer_position_pinned?
Corresponds to the JSON property lastAnswerPositionPinned
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_label ⇒ String
Corresponds to the JSON property lowValueLabel
424 425 426 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 424 def low_value_label @low_value_label end |
#must_pick_suggestion ⇒ Boolean Also known as: must_pick_suggestion?
Corresponds to the JSON property mustPickSuggestion
429 430 431 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 429 def must_pick_suggestion @must_pick_suggestion end |
#num_stars ⇒ String
Corresponds to the JSON property numStars
435 436 437 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 435 def num_stars @num_stars end |
#open_text_placeholder ⇒ String
Corresponds to the JSON property openTextPlaceholder
440 441 442 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 440 def open_text_placeholder @open_text_placeholder end |
#open_text_suggestions ⇒ Array<String>
Corresponds to the JSON property openTextSuggestions
445 446 447 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 445 def open_text_suggestions @open_text_suggestions end |
#question ⇒ String
Corresponds to the JSON property question
450 451 452 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 450 def question @question end |
#sentiment_text ⇒ String
Corresponds to the JSON property sentimentText
455 456 457 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 455 def sentiment_text @sentiment_text end |
#single_line_response ⇒ Boolean Also known as: single_line_response?
Corresponds to the JSON property singleLineResponse
460 461 462 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 460 def single_line_response @single_line_response end |
#threshold_answers ⇒ Array<String>
Corresponds to the JSON property thresholdAnswers
466 467 468 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 466 def threshold_answers @threshold_answers end |
#type ⇒ String
Corresponds to the JSON property type
471 472 473 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 471 def type @type end |
#unit_of_measurement_label ⇒ String
Corresponds to the JSON property unitOfMeasurementLabel
476 477 478 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 476 def unit_of_measurement_label @unit_of_measurement_label end |
#video_id ⇒ String
Corresponds to the JSON property videoId
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 |