Class: Google::Apis::ConsumersurveysV2::Survey

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

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

#audienceGoogle::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

#costGoogle::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_dataString

Corresponds to the JSON property customerData NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


231
232
233
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 231

def customer_data
  @customer_data
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


236
237
238
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 236

def description
  @description
end

#ownersArray<String>

Corresponds to the JSON property owners

Returns:

  • (Array<String>)


241
242
243
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 241

def owners
  @owners
end

#questionsArray<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_reasonGoogle::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

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


256
257
258
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 256

def state
  @state
end

#survey_url_idString

Corresponds to the JSON property surveyUrlId

Returns:

  • (String)


261
262
263
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 261

def survey_url_id
  @survey_url_id
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


266
267
268
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 266

def title
  @title
end

#wanted_response_countFixnum

Corresponds to the JSON property wantedResponseCount

Returns:

  • (Fixnum)


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