Class: Google::Apis::SearchconsoleV1::RunMobileFriendlyTestRequest

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 request.

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) ⇒ RunMobileFriendlyTestRequest

Returns a new instance of RunMobileFriendlyTestRequest



193
194
195
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 193

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

Instance Attribute Details

#request_screenshotBoolean Also known as: request_screenshot?

Whether or not screenshot is requested. Default is false. Corresponds to the JSON property requestScreenshot

Returns:

  • (Boolean)


190
191
192
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 190

def request_screenshot
  @request_screenshot
end

#urlString

URL for inspection. Corresponds to the JSON property url

Returns:

  • (String)


185
186
187
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 185

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



198
199
200
201
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 198

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