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

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

Defined Under Namespace

Classes: AuditRef

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) ⇒ LighthouseCategoryV5

Returns a new instance of LighthouseCategoryV5



132
133
134
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 132

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

Instance Attribute Details

#audit_refsArray<Google::Apis::PagespeedonlineV5::LighthouseCategoryV5::AuditRef>

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



105
106
107
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 105

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)


110
111
112
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 110

def description
  @description
end

#idString

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

Returns:

  • (String)


115
116
117
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 115

def id
  @id
end

#manual_descriptionString

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

Returns:

  • (String)


120
121
122
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 120

def manual_description
  @manual_description
end

#scoreObject

Corresponds to the JSON property score

Returns:

  • (Object)


125
126
127
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 125

def score
  @score
end

#titleString

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

Returns:

  • (String)


130
131
132
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 130

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



137
138
139
140
141
142
143
144
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 137

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