Class: Google::Apis::PagespeedonlineV5::CategoryGroupV5

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

Overview

Message containing a category

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CategoryGroupV5

Returns a new instance of CategoryGroupV5.



146
147
148
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 146

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

Instance Attribute Details

#descriptionString

The description of what the category is grouping Corresponds to the JSON property description

Returns:

  • (String)


139
140
141
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 139

def description
  @description
end

#titleString

The human readable title of the group Corresponds to the JSON property title

Returns:

  • (String)


144
145
146
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 144

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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