Class: Google::Apis::PagespeedonlineV1::Result::FormattedResults
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PagespeedonlineV1::Result::FormattedResults
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pagespeedonline_v1/classes.rb,
 generated/google/apis/pagespeedonline_v1/representations.rb,
 generated/google/apis/pagespeedonline_v1/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
- 
  
    
      #locale  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The locale of the formattedResults, e.g. 
- 
  
    
      #rule_results  ⇒ Hash<String,Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Dictionary of formatted rule results, with one entry for each PageSpeed rule instantiated and run by the server. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ FormattedResults 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of FormattedResults. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FormattedResults
Returns a new instance of FormattedResults
| 126 127 128 | # File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 126 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#locale ⇒ String
The locale of the formattedResults, e.g. "en_US".
Corresponds to the JSON property locale
| 118 119 120 | # File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 118 def locale @locale end | 
#rule_results ⇒ Hash<String,Google::Apis::PagespeedonlineV1::Result::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
| 124 125 126 | # File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 124 def rule_results @rule_results end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 131 132 133 134 | # File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 131 def update!(**args) @locale = args[:locale] if args.key?(:locale) @rule_results = args[:rule_results] if args.key?(:rule_results) end |