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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/pagespeedonline_v5/classes.rb,
lib/google/apis/pagespeedonline_v5/representations.rb,
lib/google/apis/pagespeedonline_v5/representations.rb

Overview

A Lighthouse category.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LighthouseCategoryV5

Returns a new instance of LighthouseCategoryV5.



387
388
389
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 387

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

Instance Attribute Details

#audit_refsArray<Google::Apis::PagespeedonlineV5::AuditRefs>

An array of references to all the audit members of this category. Corresponds to the JSON property auditRefs



359
360
361
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 359

def audit_refs
  @audit_refs
end

#descriptionString

A more detailed description of the category and its importance. Corresponds to the JSON property description

Returns:

  • (String)


364
365
366
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 364

def description
  @description
end

#idString

The string identifier of the category. Corresponds to the JSON property id

Returns:

  • (String)


369
370
371
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 369

def id
  @id
end

#manual_descriptionString

A description for the manual audits in the category. Corresponds to the JSON property manualDescription

Returns:

  • (String)


374
375
376
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 374

def manual_description
  @manual_description
end

#scoreObject

The overall score of the category, the weighted average of all its audits. ( The category's score, can be null.) Corresponds to the JSON property score

Returns:

  • (Object)


380
381
382
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 380

def score
  @score
end

#titleString

The human-friendly name of the category. Corresponds to the JSON property title

Returns:

  • (String)


385
386
387
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 385

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



392
393
394
395
396
397
398
399
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 392

def update!(**args)
  @audit_refs = args[:audit_refs] if args.key?(:audit_refs)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @manual_description = args[:manual_description] if args.key?(:manual_description)
  @score = args[:score] if args.key?(:score)
  @title = args[:title] if args.key?(:title)
end