Class: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Result
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Result
- 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
A format string that gives information about the URL, and a list of arguments for that format string.
Defined Under Namespace
Classes: Arg
Instance Attribute Summary collapse
-
#args ⇒ Array<Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Result::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) ⇒ Result
constructor
A new instance of Result.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Result
Returns a new instance of Result
343 344 345 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 343 def initialize(**args) update!(**args) end |
Instance Attribute Details
#args ⇒ Array<Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Result::Arg>
List of arguments for the format string.
Corresponds to the JSON property args
335 336 337 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 335 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 resource at URL $1 can save $2 bytes'.
Corresponds to the JSON property format
341 342 343 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 341 def format @format end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
348 349 350 351 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 348 def update!(**args) @args = args[:args] if args.key?(:args) @format = args[:format] if args.key?(:format) end |