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



578
579
580
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 578

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)


576
577
578
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 576

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



583
584
585
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 583

def update!(**args)
  @score = args[:score] if args.key?(:score)
end