Class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::RuleGroup

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

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



757
758
759
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 757

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#passBoolean Also known as: pass?

Corresponds to the JSON property pass

Returns:

  • (Boolean)


746
747
748
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 746

def pass
  @pass
end

#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, 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

Returns:

  • (Fixnum)


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