Class: TencentCloud::Mrs::V20200910::Rectangle
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::Rectangle
- Defined in:
- lib/v20200910/models.rb
Overview
位置坐标
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(x = nil, y = nil, w = nil, h = nil) ⇒ Rectangle
constructor
A new instance of Rectangle.
Constructor Details
#initialize(x = nil, y = nil, w = nil, h = nil) ⇒ Rectangle
Returns a new instance of Rectangle.
8945 8946 8947 8948 8949 8950 |
# File 'lib/v20200910/models.rb', line 8945 def initialize(x=nil, y=nil, w=nil, h=nil) @X = x @Y = y @W = w @H = h end |
Instance Attribute Details
#H ⇒ Object
8943 8944 8945 |
# File 'lib/v20200910/models.rb', line 8943 def H @H end |
#W ⇒ Object
8943 8944 8945 |
# File 'lib/v20200910/models.rb', line 8943 def W @W end |
#X ⇒ Object
8943 8944 8945 |
# File 'lib/v20200910/models.rb', line 8943 def X @X end |
#Y ⇒ Object
8943 8944 8945 |
# File 'lib/v20200910/models.rb', line 8943 def Y @Y end |
Instance Method Details
#deserialize(params) ⇒ Object
8952 8953 8954 8955 8956 8957 |
# File 'lib/v20200910/models.rb', line 8952 def deserialize(params) @X = params['X'] @Y = params['Y'] @W = params['W'] @H = params['H'] end |