Class: Google::Apis::SurveysV2::SurveyRejection

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

Overview

Message representing why the survey was rejected from review, if it was.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SurveyRejection

Returns a new instance of SurveyRejection



510
511
512
# File 'generated/google/apis/surveys_v2/classes.rb', line 510

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

Instance Attribute Details

#explanationString

A human-readable explanation of what was wrong with the survey. Corresponds to the JSON property explanation

Returns:

  • (String)


502
503
504
# File 'generated/google/apis/surveys_v2/classes.rb', line 502

def explanation
  @explanation
end

#typeString

Which category of rejection this was. See the Google Surveys Help Center for additional details on each category. Corresponds to the JSON property type

Returns:

  • (String)


508
509
510
# File 'generated/google/apis/surveys_v2/classes.rb', line 508

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



515
516
517
518
# File 'generated/google/apis/surveys_v2/classes.rb', line 515

def update!(**args)
  @explanation = args[:explanation] if args.key?(:explanation)
  @type = args[:type] if args.key?(:type)
end