Class: Google::Apis::ConsumersurveysV2::Survey
- Inherits:
-
Object
- Object
- Google::Apis::ConsumersurveysV2::Survey
- Defined in:
- generated/google/apis/consumersurveys_v2/classes.rb,
generated/google/apis/consumersurveys_v2/representations.rb,
generated/google/apis/consumersurveys_v2/representations.rb
Instance Attribute Summary collapse
-
#audience ⇒ Google::Apis::ConsumersurveysV2::SurveyAudience
Corresponds to the JSON property
audience
. -
#cost ⇒ Google::Apis::ConsumersurveysV2::SurveyCost
Corresponds to the JSON property
cost
. -
#customer_data ⇒ String
Corresponds to the JSON property
customerData
NOTE: Values are automatically base64 encoded/decoded in the client library. -
#description ⇒ String
Corresponds to the JSON property
description
. -
#owners ⇒ Array<String>
Corresponds to the JSON property
owners
. -
#questions ⇒ Array<Google::Apis::ConsumersurveysV2::SurveyQuestion>
Corresponds to the JSON property
questions
. -
#rejection_reason ⇒ Google::Apis::ConsumersurveysV2::SurveyRejection
Corresponds to the JSON property
rejectionReason
. -
#state ⇒ String
Corresponds to the JSON property
state
. -
#survey_url_id ⇒ String
Corresponds to the JSON property
surveyUrlId
. -
#title ⇒ String
Corresponds to the JSON property
title
. -
#wanted_response_count ⇒ Fixnum
Corresponds to the JSON property
wantedResponseCount
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Survey
constructor
A new instance of Survey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Survey
Returns a new instance of Survey
273 274 275 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 273 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audience ⇒ Google::Apis::ConsumersurveysV2::SurveyAudience
Corresponds to the JSON property audience
220 221 222 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 220 def audience @audience end |
#cost ⇒ Google::Apis::ConsumersurveysV2::SurveyCost
Corresponds to the JSON property cost
225 226 227 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 225 def cost @cost end |
#customer_data ⇒ String
Corresponds to the JSON property customerData
NOTE: Values are automatically base64 encoded/decoded in the client library.
231 232 233 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 231 def customer_data @customer_data end |
#description ⇒ String
Corresponds to the JSON property description
236 237 238 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 236 def description @description end |
#owners ⇒ Array<String>
Corresponds to the JSON property owners
241 242 243 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 241 def owners @owners end |
#questions ⇒ Array<Google::Apis::ConsumersurveysV2::SurveyQuestion>
Corresponds to the JSON property questions
246 247 248 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 246 def questions @questions end |
#rejection_reason ⇒ Google::Apis::ConsumersurveysV2::SurveyRejection
Corresponds to the JSON property rejectionReason
251 252 253 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 251 def rejection_reason @rejection_reason end |
#state ⇒ String
Corresponds to the JSON property state
256 257 258 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 256 def state @state end |
#survey_url_id ⇒ String
Corresponds to the JSON property surveyUrlId
261 262 263 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 261 def survey_url_id @survey_url_id end |
#title ⇒ String
Corresponds to the JSON property title
266 267 268 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 266 def title @title end |
#wanted_response_count ⇒ Fixnum
Corresponds to the JSON property wantedResponseCount
271 272 273 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 271 def wanted_response_count @wanted_response_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
278 279 280 281 282 283 284 285 286 287 288 289 290 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 278 def update!(**args) @audience = args[:audience] if args.key?(:audience) @cost = args[:cost] if args.key?(:cost) @customer_data = args[:customer_data] if args.key?(:customer_data) @description = args[:description] if args.key?(:description) @owners = args[:owners] if args.key?(:owners) @questions = args[:questions] if args.key?(:questions) @rejection_reason = args[:rejection_reason] if args.key?(:rejection_reason) @state = args[:state] if args.key?(:state) @survey_url_id = args[:survey_url_id] if args.key?(:survey_url_id) @title = args[:title] if args.key?(:title) @wanted_response_count = args[:wanted_response_count] if args.key?(:wanted_response_count) end |