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

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

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) ⇒ Detail

Returns a new instance of Detail



291
292
293
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 291

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

Instance Attribute Details

#argsArray<Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Detail::Arg>

List of arguments for the format string. Corresponds to the JSON property args



282
283
284
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 282

def args
  @args
end

#formatString

A localized format string with $N placeholders, where N is the 1-indexed argument number, e.g. 'Unnecessary metadata for this resource adds an additional $1 bytes to its download size'. Corresponds to the JSON property format

Returns:

  • (String)


289
290
291
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 289

def format
  @format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



296
297
298
299
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 296

def update!(**args)
  @args = args[:args] if args.key?(:args)
  @format = args[:format] if args.key?(:format)
end