Class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults

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

Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed rule instantiated and run by the server.

Defined Under Namespace

Classes: RuleResult

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

Returns a new instance of FormattedResults



374
375
376
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 374

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

Instance Attribute Details

#localeString

The locale of the formattedResults, e.g. "en_US". Corresponds to the JSON property locale

Returns:

  • (String)


366
367
368
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 366

def locale
  @locale
end

#rule_resultsHash<String,Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults::RuleResult>

Dictionary of formatted rule results, with one entry for each PageSpeed rule instantiated and run by the server. Corresponds to the JSON property ruleResults



372
373
374
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 372

def rule_results
  @rule_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



379
380
381
382
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 379

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