Class: Google::Apis::AndroidpublisherV3::CountryTargeting
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::CountryTargeting
- 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
Country targeting specification.
Instance Attribute Summary collapse
-
#countries ⇒ Array<String>
Countries to target, specified as two letter CLDR codes.
-
#include_rest_of_world ⇒ Boolean
(also: #include_rest_of_world?)
Include "rest of world" as well as explicitly targeted countries.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CountryTargeting
constructor
A new instance of CountryTargeting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CountryTargeting
Returns a new instance of CountryTargeting.
2033 2034 2035 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2033 def initialize(**args) update!(**args) end |
Instance Attribute Details
#countries ⇒ Array<String>
Countries to target, specified as two letter CLDR codes.
Corresponds to the JSON property countries
2025 2026 2027 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2025 def countries @countries end |
#include_rest_of_world ⇒ Boolean Also known as: include_rest_of_world?
Include "rest of world" as well as explicitly targeted countries.
Corresponds to the JSON property includeRestOfWorld
2030 2031 2032 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2030 def include_rest_of_world @include_rest_of_world end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2038 2039 2040 2041 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2038 def update!(**args) @countries = args[:countries] if args.key?(:countries) @include_rest_of_world = args[:include_rest_of_world] if args.key?(:include_rest_of_world) end |