Class: Google::Apis::SearchconsoleV1::RunMobileFriendlyTestResponse

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

Overview

Mobile-friendly test response, including mobile-friendly issues and resource issues.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RunMobileFriendlyTestResponse

Returns a new instance of RunMobileFriendlyTestResponse



165
166
167
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 165

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

Instance Attribute Details

#mobile_friendlinessString

Test verdict, whether the page is mobile friendly or not. Corresponds to the JSON property mobileFriendliness

Returns:

  • (String)


143
144
145
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 143

def mobile_friendliness
  @mobile_friendliness
end

#mobile_friendly_issuesArray<Google::Apis::SearchconsoleV1::MobileFriendlyIssue>

List of mobile-usability issues. Corresponds to the JSON property mobileFriendlyIssues



148
149
150
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 148

def mobile_friendly_issues
  @mobile_friendly_issues
end

#resource_issuesArray<Google::Apis::SearchconsoleV1::ResourceIssue>

Information about embedded resources issues. Corresponds to the JSON property resourceIssues



153
154
155
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 153

def resource_issues
  @resource_issues
end

#screenshotGoogle::Apis::SearchconsoleV1::Image

Describe image data. Corresponds to the JSON property screenshot



158
159
160
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 158

def screenshot
  @screenshot
end

#test_statusGoogle::Apis::SearchconsoleV1::TestStatus

Final state of the test, including error details if necessary. Corresponds to the JSON property testStatus



163
164
165
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 163

def test_status
  @test_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



170
171
172
173
174
175
176
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 170

def update!(**args)
  @mobile_friendliness = args[:mobile_friendliness] if args.key?(:mobile_friendliness)
  @mobile_friendly_issues = args[:mobile_friendly_issues] if args.key?(:mobile_friendly_issues)
  @resource_issues = args[:resource_issues] if args.key?(:resource_issues)
  @screenshot = args[:screenshot] if args.key?(:screenshot)
  @test_status = args[:test_status] if args.key?(:test_status)
end