Class: Google::Apis::AndroidpublisherV3::UserCountrySet

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/androidpublisher_v3/classes.rb,
lib/google/apis/androidpublisher_v3/representations.rb,
lib/google/apis/androidpublisher_v3/representations.rb

Overview

A set of user countries. A country set determines what variation of app content gets served to a specific location.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserCountrySet

Returns a new instance of UserCountrySet.



10361
10362
10363
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 10361

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

Instance Attribute Details

#country_codesArray<String>

List of country codes representing countries. A Country code is represented in ISO 3166 alpha-2 format. For Example:- "IT" for Italy, "GE" for Georgia. Corresponds to the JSON property countryCodes

Returns:

  • (Array<String>)


10354
10355
10356
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 10354

def country_codes
  @country_codes
end

#nameString

Country set name. Corresponds to the JSON property name

Returns:

  • (String)


10359
10360
10361
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 10359

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10366
10367
10368
10369
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 10366

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