Class: Google::Apis::ContentV2_1::Breakdown

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

A detailed impact breakdown for a group of regions where the impact of the issue on different shopping destinations is the same.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Breakdown

Returns a new instance of Breakdown.



2614
2615
2616
# File 'lib/google/apis/content_v2_1/classes.rb', line 2614

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

Instance Attribute Details

#detailsArray<String>

Human readable, localized description of issue's effect on different targets. Should be rendered as a list. For example: * "Products not showing in ads" * " Products not showing organically" Corresponds to the JSON property details

Returns:

  • (Array<String>)


2605
2606
2607
# File 'lib/google/apis/content_v2_1/classes.rb', line 2605

def details
  @details
end

#regionsArray<Google::Apis::ContentV2_1::BreakdownRegion>

Lists of regions. Should be rendered as a title for this group of details. The full list should be shown to merchant. If the list is too long, it is recommended to make it expandable. Corresponds to the JSON property regions



2612
2613
2614
# File 'lib/google/apis/content_v2_1/classes.rb', line 2612

def regions
  @regions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2619
2620
2621
2622
# File 'lib/google/apis/content_v2_1/classes.rb', line 2619

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