Class: Google::Apis::SearchconsoleV1::Item

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

A specific rich result found on the page.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Item

Returns a new instance of Item.



454
455
456
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 454

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

Instance Attribute Details

#issuesArray<Google::Apis::SearchconsoleV1::RichResultsIssue>

A list of zero or more rich result issues found for this instance. Corresponds to the JSON property issues



447
448
449
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 447

def issues
  @issues
end

#nameString

The user-provided name of this item. Corresponds to the JSON property name

Returns:

  • (String)


452
453
454
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 452

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



459
460
461
462
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 459

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