Class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::RuleGroup
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::RuleGroup
- 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
The name of this rule group: one of "SPEED", "USABILITY", or "SECURITY".
Instance Attribute Summary collapse
-
#pass ⇒ Boolean
(also: #pass?)
Corresponds to the JSON property
pass
. -
#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, or how much more secure).
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
757 758 759 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 757 def initialize(**args) update!(**args) end |
Instance Attribute Details
#pass ⇒ Boolean Also known as: pass?
Corresponds to the JSON property pass
746 747 748 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 746 def pass @pass end |
#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, or
how much more secure). A high score indicates little room for improvement,
while a lower score indicates more room for improvement.
Corresponds to the JSON property score
755 756 757 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 755 def score @score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
762 763 764 765 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 762 def update!(**args) @pass = args[:pass] if args.key?(:pass) @score = args[:score] if args.key?(:score) end |