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.
8972 8973 8974 8975 8976 8977 |
# File 'lib/v20200910/models.rb', line 8972 def initialize(x=nil, y=nil, w=nil, h=nil) @X = x @Y = y @W = w @H = h end |
Instance Attribute Details
#H ⇒ Object
8970 8971 8972 |
# File 'lib/v20200910/models.rb', line 8970 def H @H end |
#W ⇒ Object
8970 8971 8972 |
# File 'lib/v20200910/models.rb', line 8970 def W @W end |
#X ⇒ Object
8970 8971 8972 |
# File 'lib/v20200910/models.rb', line 8970 def X @X end |
#Y ⇒ Object
8970 8971 8972 |
# File 'lib/v20200910/models.rb', line 8970 def Y @Y end |
Instance Method Details
#deserialize(params) ⇒ Object
8979 8980 8981 8982 8983 8984 |
# File 'lib/v20200910/models.rb', line 8979 def deserialize(params) @X = params['X'] @Y = params['Y'] @W = params['W'] @H = params['H'] end |