Class: Google::Apis::PagespeedonlineV5::StackPack
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::StackPack
- 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 Stack Pack information.
Instance Attribute Summary collapse
-
#descriptions ⇒ Hash<String,String>
The stack pack advice strings.
-
#icon_data_url ⇒ String
The stack pack icon data uri.
-
#id ⇒ String
The stack pack id.
-
#title ⇒ String
The stack pack title.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StackPack
constructor
A new instance of StackPack.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StackPack
Returns a new instance of StackPack.
1013 1014 1015 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 1013 def initialize(**args) update!(**args) end |
Instance Attribute Details
#descriptions ⇒ Hash<String,String>
The stack pack advice strings.
Corresponds to the JSON property descriptions
996 997 998 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 996 def descriptions @descriptions end |
#icon_data_url ⇒ String
The stack pack icon data uri.
Corresponds to the JSON property iconDataURL
1001 1002 1003 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 1001 def icon_data_url @icon_data_url end |
#id ⇒ String
The stack pack id.
Corresponds to the JSON property id
1006 1007 1008 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 1006 def id @id end |
#title ⇒ String
The stack pack title.
Corresponds to the JSON property title
1011 1012 1013 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 1011 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1018 1019 1020 1021 1022 1023 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 1018 def update!(**args) @descriptions = args[:descriptions] if args.key?(:descriptions) @icon_data_url = args[:icon_data_url] if args.key?(:icon_data_url) @id = args[:id] if args.key?(:id) @title = args[:title] if args.key?(:title) end |