Class: Google::Apis::PagespeedonlineV2::Result::RuleGroup

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#scoreFixnum

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

Returns:

  • (Fixnum)


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