Class: Google::Apis::SearchconsoleV1::DetectedItems

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

Overview

Rich Results items grouped by type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DetectedItems

Returns a new instance of DetectedItems.



255
256
257
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 255

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

Instance Attribute Details

#itemsArray<Google::Apis::SearchconsoleV1::Item>

List of Rich Results items. Corresponds to the JSON property items



248
249
250
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 248

def items
  @items
end

#rich_result_typeString

Rich Results type Corresponds to the JSON property richResultType

Returns:

  • (String)


253
254
255
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 253

def rich_result_type
  @rich_result_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



260
261
262
263
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 260

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