class Google::Apis::PagespeedonlineV2::FormatString::Arg

Attributes

key[RW]

The placeholder key for this arg, as a string. Corresponds to the JSON property `key` @return [String]

rects[RW]

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_rects[RW]

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[RW]

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]

value[RW]

Argument value, as a localized string. Corresponds to the JSON property `value` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/pagespeedonline_v2/classes.rb, line 86
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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