Class: Google::Apis::PagespeedonlineV5::PagespeedApiLoadingExperienceV5

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

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

Returns a new instance of PagespeedApiLoadingExperienceV5



605
606
607
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 605

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)


588
589
590
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 588

def id
  @id
end

#initial_urlString

Corresponds to the JSON property initial_url

Returns:

  • (String)


593
594
595
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 593

def initial_url
  @initial_url
end

#metricsHash<String,Google::Apis::PagespeedonlineV5::PagespeedApiLoadingExperienceV5::Metric>

Corresponds to the JSON property metrics



598
599
600
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 598

def metrics
  @metrics
end

#overall_categoryString

Corresponds to the JSON property overall_category

Returns:

  • (String)


603
604
605
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 603

def overall_category
  @overall_category
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



610
611
612
613
614
615
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 610

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