Class: Google::Apis::SurveysV2::SurveyRejection
- Inherits:
-
Object
- Object
- Google::Apis::SurveysV2::SurveyRejection
- 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
-
#explanation ⇒ String
A human-readable explanation of what was wrong with the survey.
-
#type ⇒ String
Which category of rejection this was.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SurveyRejection
constructor
A new instance of SurveyRejection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#explanation ⇒ String
A human-readable explanation of what was wrong with the survey.
Corresponds to the JSON property explanation
606 607 608 |
# File 'generated/google/apis/surveys_v2/classes.rb', line 606 def explanation @explanation end |
#type ⇒ String
Which category of rejection this was. See the Google Surveys Help Center for
additional details on each category.
Corresponds to the JSON property type
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 |