Class: Google::Apis::ContentV2_1::BreakdownRegion

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

Overview

Region with code and localized name.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BreakdownRegion

Returns a new instance of BreakdownRegion.



2593
2594
2595
# File 'lib/google/apis/content_v2_1/classes.rb', line 2593

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

Instance Attribute Details

#codeString

The CLDR territory code Corresponds to the JSON property code

Returns:

  • (String)


2585
2586
2587
# File 'lib/google/apis/content_v2_1/classes.rb', line 2585

def code
  @code
end

#nameString

The localized name of the region. For region with code='001' the value is 'All countries' or the equivalent in other languages. Corresponds to the JSON property name

Returns:

  • (String)


2591
2592
2593
# File 'lib/google/apis/content_v2_1/classes.rb', line 2591

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2598
2599
2600
2601
# File 'lib/google/apis/content_v2_1/classes.rb', line 2598

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