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.



2641
2642
2643
# File 'lib/google/apis/content_v2_1/classes.rb', line 2641

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

Instance Attribute Details

#codeString

The CLDR territory code Corresponds to the JSON property code

Returns:

  • (String)


2633
2634
2635
# File 'lib/google/apis/content_v2_1/classes.rb', line 2633

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)


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