Class: Google::Apis::ConsumersurveysV2::SurveyAudience

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

Returns a new instance of SurveyAudience



332
333
334
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 332

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

Instance Attribute Details

#agesArray<String>

Corresponds to the JSON property ages

Returns:

  • (Array<String>)


300
301
302
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 300

def ages
  @ages
end

#countryString

Corresponds to the JSON property country

Returns:

  • (String)


305
306
307
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 305

def country
  @country
end

#country_subdivisionString

Corresponds to the JSON property countrySubdivision

Returns:

  • (String)


310
311
312
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 310

def country_subdivision
  @country_subdivision
end

#genderString

Corresponds to the JSON property gender

Returns:

  • (String)


315
316
317
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 315

def gender
  @gender
end

#languagesArray<String>

Corresponds to the JSON property languages

Returns:

  • (Array<String>)


320
321
322
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 320

def languages
  @languages
end

#mobile_app_panel_idString

Corresponds to the JSON property mobileAppPanelId

Returns:

  • (String)


325
326
327
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 325

def mobile_app_panel_id
  @mobile_app_panel_id
end

#population_sourceString

Corresponds to the JSON property populationSource

Returns:

  • (String)


330
331
332
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 330

def population_source
  @population_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



337
338
339
340
341
342
343
344
345
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 337

def update!(**args)
  @ages = args[:ages] if args.key?(:ages)
  @country = args[:country] if args.key?(:country)
  @country_subdivision = args[:country_subdivision] if args.key?(:country_subdivision)
  @gender = args[:gender] if args.key?(:gender)
  @languages = args[:languages] if args.key?(:languages)
  @mobile_app_panel_id = args[:mobile_app_panel_id] if args.key?(:mobile_app_panel_id)
  @population_source = args[:population_source] if args.key?(:population_source)
end