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.
2641 2642 2643 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2641 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
The CLDR territory code
Corresponds to the JSON property code
2633 2634 2635 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2633 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
2639 2640 2641 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2639 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2646 2647 2648 2649 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2646 def update!(**args) @code = args[:code] if args.key?(:code) @name = args[:name] if args.key?(:name) end |