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

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

Heading to be displayed with the list of URLs.

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

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

#formatString

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

Returns:

  • (String)


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