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

Attributes

height[RW]

The height of the rect. Corresponds to the JSON property `height` @return [Fixnum]

left[RW]

The left coordinate of the rect, in page coordinates. Corresponds to the JSON property `left` @return [Fixnum]

top[RW]

The top coordinate of the rect, in page coordinates. Corresponds to the JSON property `top` @return [Fixnum]

width[RW]

The width of the rect. Corresponds to the JSON property `width` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/pagespeedonline_v2/classes.rb, line 123
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 128
def update!(**args)
  @height = args[:height] if args.key?(:height)
  @left = args[:left] if args.key?(:left)
  @top = args[:top] if args.key?(:top)
  @width = args[:width] if args.key?(:width)
end