Class: Google::Apis::AndroidpublisherV3::CountryTargeting

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

Country targeting specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CountryTargeting

Returns a new instance of CountryTargeting.



671
672
673
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 671

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

Instance Attribute Details

#countriesArray<String>

Countries to target, specified as two letter CLDR codes. Corresponds to the JSON property countries

Returns:

  • (Array<String>)


663
664
665
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 663

def countries
  @countries
end

#include_rest_of_worldBoolean Also known as: include_rest_of_world?

Include "rest of world" as well as explicitly targeted countries. Corresponds to the JSON property includeRestOfWorld

Returns:

  • (Boolean)


668
669
670
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 668

def include_rest_of_world
  @include_rest_of_world
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



676
677
678
679
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 676

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