Class: Google::Apis::PagespeedonlineV2::Result::RuleGroup
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PagespeedonlineV2::Result::RuleGroup
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pagespeedonline_v2/classes.rb,
 generated/google/apis/pagespeedonline_v2/representations.rb,
 generated/google/apis/pagespeedonline_v2/representations.rb
Overview
The name of this rule group: one of "SPEED" or "USABILITY".
Instance Attribute Summary collapse
- 
  
    
      #score  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The score (0-100) for this rule group, which indicates how much better a page could be in that category (e.g. how much faster, or how much more usable). 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ RuleGroup 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RuleGroup. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RuleGroup
Returns a new instance of RuleGroup
| 584 585 586 | # File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 584 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#score ⇒ Fixnum
The score (0-100) for this rule group, which indicates how much better a page
could be in that category (e.g. how much faster, or how much more usable). A
high score indicates little room for improvement, while a lower score
indicates more room for improvement.
Corresponds to the JSON property score
| 582 583 584 | # File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 582 def score @score end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 589 590 591 | # File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 589 def update!(**args) @score = args[:score] if args.key?(:score) end |