Class: Google::Apis::PagespeedonlineV5::PagespeedApiPagespeedResponseV5

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

Overview

The Pagespeed API response object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PagespeedApiPagespeedResponseV5

Returns a new instance of PagespeedApiPagespeedResponseV5.



575
576
577
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 575

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

Instance Attribute Details

#analysis_utc_timestampString

The UTC timestamp of this analysis. Corresponds to the JSON property analysisUTCTimestamp

Returns:

  • (String)


537
538
539
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 537

def analysis_utc_timestamp
  @analysis_utc_timestamp
end

#captcha_resultString

The captcha verify result Corresponds to the JSON property captchaResult

Returns:

  • (String)


542
543
544
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 542

def captcha_result
  @captcha_result
end

#idString

Canonicalized and final URL for the document, after following page redirects ( if any). Corresponds to the JSON property id

Returns:

  • (String)


548
549
550
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 548

def id
  @id
end

#kindString

Kind of result. Corresponds to the JSON property kind

Returns:

  • (String)


553
554
555
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 553

def kind
  @kind
end

#lighthouse_resultGoogle::Apis::PagespeedonlineV5::LighthouseResultV5

The Lighthouse result object. Corresponds to the JSON property lighthouseResult



558
559
560
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 558

def lighthouse_result
  @lighthouse_result
end

#loading_experienceGoogle::Apis::PagespeedonlineV5::PagespeedApiLoadingExperienceV5

The CrUX loading experience object that contains CrUX data breakdowns. Corresponds to the JSON property loadingExperience



563
564
565
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 563

def loading_experience
  @loading_experience
end

#origin_loading_experienceGoogle::Apis::PagespeedonlineV5::PagespeedApiLoadingExperienceV5

The CrUX loading experience object that contains CrUX data breakdowns. Corresponds to the JSON property originLoadingExperience



568
569
570
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 568

def origin_loading_experience
  @origin_loading_experience
end

#versionGoogle::Apis::PagespeedonlineV5::PagespeedVersion

The Pagespeed Version object. Corresponds to the JSON property version



573
574
575
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 573

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



580
581
582
583
584
585
586
587
588
589
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 580

def update!(**args)
  @analysis_utc_timestamp = args[:analysis_utc_timestamp] if args.key?(:analysis_utc_timestamp)
  @captcha_result = args[:captcha_result] if args.key?(:captcha_result)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @lighthouse_result = args[:lighthouse_result] if args.key?(:lighthouse_result)
  @loading_experience = args[:loading_experience] if args.key?(:loading_experience)
  @origin_loading_experience = args[:origin_loading_experience] if args.key?(:origin_loading_experience)
  @version = args[:version] if args.key?(:version)
end