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

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

Message containing a category

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CategoryGroupV5

Returns a new instance of CategoryGroupV5.



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

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)


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

def description
  @description
end

#titleString

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

Returns:

  • (String)


156
157
158
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 156

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



163
164
165
166
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 163

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