Class: Google::Apis::ConsumersurveysV2::SurveyAudience
- Inherits:
-
Object
- Object
- Google::Apis::ConsumersurveysV2::SurveyAudience
- 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
-
#ages ⇒ Array<String>
Corresponds to the JSON property
ages
. -
#country ⇒ String
Corresponds to the JSON property
country
. -
#country_subdivision ⇒ String
Corresponds to the JSON property
countrySubdivision
. -
#gender ⇒ String
Corresponds to the JSON property
gender
. -
#languages ⇒ Array<String>
Corresponds to the JSON property
languages
. -
#mobile_app_panel_id ⇒ String
Corresponds to the JSON property
mobileAppPanelId
. -
#population_source ⇒ String
Corresponds to the JSON property
populationSource
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SurveyAudience
constructor
A new instance of SurveyAudience.
-
#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) ⇒ 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
#ages ⇒ Array<String>
Corresponds to the JSON property ages
300 301 302 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 300 def ages @ages end |
#country ⇒ String
Corresponds to the JSON property country
305 306 307 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 305 def country @country end |
#country_subdivision ⇒ String
Corresponds to the JSON property countrySubdivision
310 311 312 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 310 def country_subdivision @country_subdivision end |
#gender ⇒ String
Corresponds to the JSON property gender
315 316 317 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 315 def gender @gender end |
#languages ⇒ Array<String>
Corresponds to the JSON property languages
320 321 322 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 320 def languages @languages end |
#mobile_app_panel_id ⇒ String
Corresponds to the JSON property mobileAppPanelId
325 326 327 |
# File 'generated/google/apis/consumersurveys_v2/classes.rb', line 325 def mobile_app_panel_id @mobile_app_panel_id end |
#population_source ⇒ String
Corresponds to the JSON property populationSource
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 |