Class: Google::Apis::PagespeedonlineV2::FormatString

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/pagespeedonline_v2/classes.rb,
generated/google/apis/pagespeedonline_v2/representations.rb,
generated/google/apis/pagespeedonline_v2/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) ⇒ FormatString

Returns a new instance of FormatString



42
43
44
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 42

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

Instance Attribute Details

#argsArray<Google::Apis::PagespeedonlineV2::FormatString::Arg>

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



32
33
34
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 32

def args
  @args
end

#formatString

A localized format string with FOO placeholders, where 'FOO' is the key of the argument whose value should be substituted. For HYPERLINK arguments, the format string will instead contain BEGIN_FOO and END_FOO for the argument with key 'FOO'. Corresponds to the JSON property format

Returns:

  • (String)


40
41
42
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 40

def format
  @format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



47
48
49
50
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 47

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