Class: Google::Apis::PagespeedonlineV2::FormatString
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV2::FormatString
- 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
-
#args ⇒ Array<Google::Apis::PagespeedonlineV2::FormatString::Arg>
List of arguments for the format string.
-
#format ⇒ String
A localized format string with
FOO
placeholders, where 'FOO' is the key of the argument whose value should be substituted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FormatString
constructor
A new instance of FormatString.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#args ⇒ Array<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 |
#format ⇒ String
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
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 |