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



614
615
616
# File 'generated/google/apis/surveys_v2/classes.rb', line 614

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)


606
607
608
# File 'generated/google/apis/surveys_v2/classes.rb', line 606

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)


612
613
614
# File 'generated/google/apis/surveys_v2/classes.rb', line 612

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



619
620
621
622
# File 'generated/google/apis/surveys_v2/classes.rb', line 619

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