Class: Google::Apis::PagespeedonlineV5::LighthouseAuditResultV5

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

Returns a new instance of LighthouseAuditResultV5



79
80
81
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 79

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

Instance Attribute Details

#descriptionString

The description of the audit. Corresponds to the JSON property description

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 32

def description
  @description
end

#detailsHash<String,Object>

Freeform details section of the audit. Corresponds to the JSON property details

Returns:

  • (Hash<String,Object>)


37
38
39
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 37

def details
  @details
end

#display_valueString

The value that should be displayed on the UI for this audit. Corresponds to the JSON property displayValue

Returns:

  • (String)


42
43
44
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 42

def display_value
  @display_value
end

#error_messageString

An error message from a thrown error inside the audit. Corresponds to the JSON property errorMessage

Returns:

  • (String)


47
48
49
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 47

def error_message
  @error_message
end

#explanationString

An explanation of the errors in the audit. Corresponds to the JSON property explanation

Returns:

  • (String)


52
53
54
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 52

def explanation
  @explanation
end

#idString

The audit's id. Corresponds to the JSON property id

Returns:

  • (String)


57
58
59
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 57

def id
  @id
end

#scoreObject

Corresponds to the JSON property score

Returns:

  • (Object)


62
63
64
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 62

def score
  @score
end

#score_display_modeString

The enumerated score display mode. Corresponds to the JSON property scoreDisplayMode

Returns:

  • (String)


67
68
69
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 67

def score_display_mode
  @score_display_mode
end

#titleString

The human readable title. Corresponds to the JSON property title

Returns:

  • (String)


72
73
74
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 72

def title
  @title
end

#warningsObject

Corresponds to the JSON property warnings

Returns:

  • (Object)


77
78
79
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 77

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



84
85
86
87
88
89
90
91
92
93
94
95
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 84

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @details = args[:details] if args.key?(:details)
  @display_value = args[:display_value] if args.key?(:display_value)
  @error_message = args[:error_message] if args.key?(:error_message)
  @explanation = args[:explanation] if args.key?(:explanation)
  @id = args[:id] if args.key?(:id)
  @score = args[:score] if args.key?(:score)
  @score_display_mode = args[:score_display_mode] if args.key?(:score_display_mode)
  @title = args[:title] if args.key?(:title)
  @warnings = args[:warnings] if args.key?(:warnings)
end