Class: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Result

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#argsArray<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

#formatString

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

Returns:

  • (String)


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