Class: Google::Apis::PagespeedonlineV5::StackPack

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 Stack Pack information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StackPack

Returns a new instance of StackPack.



768
769
770
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 768

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

Instance Attribute Details

#descriptionsHash<String,String>

The stack pack advice strings. Corresponds to the JSON property descriptions

Returns:

  • (Hash<String,String>)


751
752
753
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 751

def descriptions
  @descriptions
end

#icon_data_urlString

The stack pack icon data uri. Corresponds to the JSON property iconDataURL

Returns:

  • (String)


756
757
758
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 756

def icon_data_url
  @icon_data_url
end

#idString

The stack pack id. Corresponds to the JSON property id

Returns:

  • (String)


761
762
763
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 761

def id
  @id
end

#titleString

The stack pack title. Corresponds to the JSON property title

Returns:

  • (String)


766
767
768
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 766

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



773
774
775
776
777
778
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 773

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