class Google::Apis::PagespeedonlineV2::FormatString::Arg
Attributes
The placeholder key for this arg, as a string. Corresponds to the JSON property `key` @return [String]
The screen rectangles being referred to, with dimensions measured in CSS pixels. This is only ever used for SNAPSHOT_RECT arguments. If this is absent for a SNAPSHOT_RECT argument, it means that that argument refers to the entire snapshot. Corresponds to the JSON property `rects` @return [Array<Google::Apis::PagespeedonlineV2::FormatString::Arg::Rect>]
Secondary screen rectangles being referred to, with dimensions measured in CSS pixels. This is only ever used for SNAPSHOT_RECT arguments. Corresponds to the JSON property `secondary_rects` @return [Array<Google::Apis::PagespeedonlineV2::FormatString::Arg::SecondaryRect>]
Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, BYTES, DURATION, VERBATIM_STRING, PERCENTAGE, HYPERLINK, or SNAPSHOT_RECT. Corresponds to the JSON property `type` @return [String]
Argument value, as a localized string. Corresponds to the JSON property `value` @return [String]
Public Class Methods
# File generated/google/apis/pagespeedonline_v2/classes.rb, line 86 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/pagespeedonline_v2/classes.rb, line 91 def update!(**args) @key = args[:key] if args.key?(:key) @rects = args[:rects] if args.key?(:rects) @secondary_rects = args[:secondary_rects] if args.key?(:secondary_rects) @type = args[:type] if args.key?(:type) @value = args[:value] if args.key?(:value) end