Class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience

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

Overview

Metrics of end users' page loading experience.

Defined Under Namespace

Classes: Metric

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

Returns a new instance of LoadingExperience



521
522
523
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 521

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

Instance Attribute Details

#idString

The url, pattern or origin which the metrics are on. Corresponds to the JSON property id

Returns:

  • (String)


504
505
506
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 504

def id
  @id
end

#initial_urlString

Corresponds to the JSON property initial_url

Returns:

  • (String)


509
510
511
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 509

def initial_url
  @initial_url
end

#metricsHash<String,Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience::Metric>

Corresponds to the JSON property metrics



514
515
516
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 514

def metrics
  @metrics
end

#overall_categoryString

Corresponds to the JSON property overall_category

Returns:

  • (String)


519
520
521
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 519

def overall_category
  @overall_category
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



526
527
528
529
530
531
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 526

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @initial_url = args[:initial_url] if args.key?(:initial_url)
  @metrics = args[:metrics] if args.key?(:metrics)
  @overall_category = args[:overall_category] if args.key?(:overall_category)
end