Class: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult
- 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
The enum-like identifier for this rule. For instance "EnableKeepAlive" or " AvoidCssImport". Not localized.
Defined Under Namespace
Classes: UrlBlock
Instance Attribute Summary collapse
-
#localized_rule_name ⇒ String
Localized name of the rule, intended for presentation to a user.
-
#rule_impact ⇒ Float
The impact (unbounded floating point value) that implementing the suggestions for this rule would have on making the page faster.
-
#url_blocks ⇒ Array<Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock>
List of blocks of URLs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RuleResult
constructor
A new instance of RuleResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RuleResult
Returns a new instance of RuleResult
157 158 159 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 157 def initialize(**args) update!(**args) end |
Instance Attribute Details
#localized_rule_name ⇒ String
Localized name of the rule, intended for presentation to a user.
Corresponds to the JSON property localizedRuleName
138 139 140 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 138 def localized_rule_name @localized_rule_name end |
#rule_impact ⇒ Float
The impact (unbounded floating point value) that implementing the suggestions
for this rule would have on making the page faster. Impact is comparable
between rules to determine which rule's suggestions would have a higher or
lower impact on making a page faster. For instance, if enabling compression
would save 1MB, while optimizing images would save 500kB, the enable
compression rule would have 2x the impact of the image optimization rule, all
other things being equal.
Corresponds to the JSON property ruleImpact
149 150 151 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 149 def rule_impact @rule_impact end |
#url_blocks ⇒ Array<Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock>
List of blocks of URLs. Each block may contain a heading and a list of URLs.
Each URL may optionally include additional details.
Corresponds to the JSON property urlBlocks
155 156 157 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 155 def url_blocks @url_blocks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
162 163 164 165 166 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 162 def update!(**args) @localized_rule_name = args[:localized_rule_name] if args.key?(:localized_rule_name) @rule_impact = args[:rule_impact] if args.key?(:rule_impact) @url_blocks = args[:url_blocks] if args.key?(:url_blocks) end |