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



535
536
537
# File 'generated/google/apis/surveys_v2/classes.rb', line 535

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)


528
529
530
# File 'generated/google/apis/surveys_v2/classes.rb', line 528

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)


533
534
535
# File 'generated/google/apis/surveys_v2/classes.rb', line 533

def survey_url_id
  @survey_url_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



540
541
542
543
# File 'generated/google/apis/surveys_v2/classes.rb', line 540

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