Class: Google::Apis::PagespeedonlineV2::FormatString::Arg::SecondaryRect
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV2::FormatString::Arg::SecondaryRect
- 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
Instance Attribute Summary collapse
-
#height ⇒ Fixnum
The height of the rect.
-
#left ⇒ Fixnum
The left coordinate of the rect, in page coordinates.
-
#top ⇒ Fixnum
The top coordinate of the rect, in page coordinates.
-
#width ⇒ Fixnum
The width of the rect.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecondaryRect
constructor
A new instance of SecondaryRect.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SecondaryRect
Returns a new instance of SecondaryRect
160 161 162 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 160 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
The height of the rect.
Corresponds to the JSON property height
143 144 145 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 143 def height @height end |
#left ⇒ Fixnum
The left coordinate of the rect, in page coordinates.
Corresponds to the JSON property left
148 149 150 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 148 def left @left end |
#top ⇒ Fixnum
The top coordinate of the rect, in page coordinates.
Corresponds to the JSON property top
153 154 155 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 153 def top @top end |
#width ⇒ Fixnum
The width of the rect.
Corresponds to the JSON property width
158 159 160 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 158 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
165 166 167 168 169 170 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 165 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 |