Class: Google::Apis::ContentV2_1::BreakdownRegion
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::BreakdownRegion
- 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
-
#code ⇒ String
The CLDR territory code Corresponds to the JSON property
code
. -
#name ⇒ String
The localized name of the region.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BreakdownRegion
constructor
A new instance of BreakdownRegion.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#code ⇒ String
The CLDR territory code
Corresponds to the JSON property code
2585 2586 2587 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2585 def code @code end |
#name ⇒ String
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
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 |