Class: Google::Apis::PagespeedonlineV5::LighthouseCategoryV5::AuditRef
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::LighthouseCategoryV5::AuditRef
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pagespeedonline_v5/classes.rb,
generated/google/apis/pagespeedonline_v5/representations.rb,
generated/google/apis/pagespeedonline_v5/representations.rb
Instance Attribute Summary collapse
-
#group ⇒ String
The category group that the audit belongs to (optional).
-
#id ⇒ String
The audit ref id.
-
#weight ⇒ Float
The weight this audit's score has on the overall category score.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuditRef
constructor
A new instance of AuditRef.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AuditRef
Returns a new instance of AuditRef
165 166 167 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 165 def initialize(**args) update!(**args) end |
Instance Attribute Details
#group ⇒ String
The category group that the audit belongs to (optional).
Corresponds to the JSON property group
153 154 155 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 153 def group @group end |
#id ⇒ String
The audit ref id.
Corresponds to the JSON property id
158 159 160 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 158 def id @id end |
#weight ⇒ Float
The weight this audit's score has on the overall category score.
Corresponds to the JSON property weight
163 164 165 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 163 def weight @weight end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
170 171 172 173 174 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 170 def update!(**args) @group = args[:group] if args.key?(:group) @id = args[:id] if args.key?(:id) @weight = args[:weight] if args.key?(:weight) end |