Class: Google::Apis::AndroidpublisherV3::UserCountriesTargeting

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

Describes an inclusive/exclusive list of country codes that module targets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserCountriesTargeting

Returns a new instance of UserCountriesTargeting.



7181
7182
7183
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7181

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

Instance Attribute Details

#country_codesArray<String>

List of country codes in the two-letter CLDR territory format. Corresponds to the JSON property countryCodes

Returns:

  • (Array<String>)


7173
7174
7175
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7173

def country_codes
  @country_codes
end

#excludeBoolean Also known as: exclude?

Indicates if the list above is exclusive. Corresponds to the JSON property exclude

Returns:

  • (Boolean)


7178
7179
7180
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7178

def exclude
  @exclude
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7186
7187
7188
7189
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 7186

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