Class: Google::Apis::SurveysV2::SurveyResults

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

Reference to the current results for a given survey.

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) ⇒ SurveyResults

Returns a new instance of SurveyResults



639
640
641
# File 'generated/google/apis/surveys_v2/classes.rb', line 639

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

Instance Attribute Details

#statusString

Human readable string describing the status of the request. Corresponds to the JSON property status

Returns:

  • (String)


632
633
634
# File 'generated/google/apis/surveys_v2/classes.rb', line 632

def status
  @status
end

#survey_url_idString

External survey ID as viewable by survey owners in the editor view. Corresponds to the JSON property surveyUrlId

Returns:

  • (String)


637
638
639
# File 'generated/google/apis/surveys_v2/classes.rb', line 637

def survey_url_id
  @survey_url_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



644
645
646
647
# File 'generated/google/apis/surveys_v2/classes.rb', line 644

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