Class: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Header
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Header
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pagespeedonline_v1/classes.rb,
generated/google/apis/pagespeedonline_v1/representations.rb,
generated/google/apis/pagespeedonline_v1/representations.rb
Overview
Heading to be displayed with the list of URLs.
Defined Under Namespace
Classes: Arg
Instance Attribute Summary collapse
-
#args ⇒ Array<Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Header::Arg>
List of arguments for the format string.
-
#format ⇒ String
A localized format string with $N placeholders, where N is the 1-indexed argument number, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Header
constructor
A new instance of Header.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Header
Returns a new instance of Header
214 215 216 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 214 def initialize(**args) update!(**args) end |
Instance Attribute Details
#args ⇒ Array<Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Header::Arg>
List of arguments for the format string.
Corresponds to the JSON property args
205 206 207 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 205 def args @args end |
#format ⇒ String
A localized format string with $N placeholders, where N is the 1-indexed
argument number, e.g. 'Minifying the following $1 resources would save a total
of $2 bytes'.
Corresponds to the JSON property format
212 213 214 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 212 def format @format end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
219 220 221 222 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 219 def update!(**args) @args = args[:args] if args.key?(:args) @format = args[:format] if args.key?(:format) end |