Class: Google::Apis::PagespeedonlineV5::LighthouseCategoryV5::AuditRef

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#groupString

The category group that the audit belongs to (optional). Corresponds to the JSON property group

Returns:

  • (String)


153
154
155
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 153

def group
  @group
end

#idString

The audit ref id. Corresponds to the JSON property id

Returns:

  • (String)


158
159
160
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 158

def id
  @id
end

#weightFloat

The weight this audit's score has on the overall category score. Corresponds to the JSON property weight

Returns:

  • (Float)


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