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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CountryTargeting

Returns a new instance of CountryTargeting.



348
349
350
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 348

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

Instance Attribute Details

#countriesArray<String>

Corresponds to the JSON property countries

Returns:

  • (Array<String>)


340
341
342
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 340

def countries
  @countries
end

#include_rest_of_worldBoolean Also known as: include_rest_of_world?

Corresponds to the JSON property includeRestOfWorld

Returns:

  • (Boolean)


345
346
347
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 345

def include_rest_of_world
  @include_rest_of_world
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



353
354
355
356
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 353

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