Class: TencentCloud::Tiia::V20190529::ImageRect
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tiia::V20190529::ImageRect
- Defined in:
- lib/v20190529/models.rb
Overview
图像主体区域坐标
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(x = nil, y = nil, width = nil, height = nil) ⇒ ImageRect
constructor
A new instance of ImageRect.
Constructor Details
#initialize(x = nil, y = nil, width = nil, height = nil) ⇒ ImageRect
Returns a new instance of ImageRect.
1529 1530 1531 1532 1533 1534 |
# File 'lib/v20190529/models.rb', line 1529 def initialize(x=nil, y=nil, width=nil, height=nil) @X = x @Y = y @Width = width @Height = height end |
Instance Attribute Details
#Height ⇒ Object
1527 1528 1529 |
# File 'lib/v20190529/models.rb', line 1527 def Height @Height end |
#Width ⇒ Object
1527 1528 1529 |
# File 'lib/v20190529/models.rb', line 1527 def Width @Width end |
#X ⇒ Object
1527 1528 1529 |
# File 'lib/v20190529/models.rb', line 1527 def X @X end |
#Y ⇒ Object
1527 1528 1529 |
# File 'lib/v20190529/models.rb', line 1527 def Y @Y end |
Instance Method Details
#deserialize(params) ⇒ Object
1536 1537 1538 1539 1540 1541 |
# File 'lib/v20190529/models.rb', line 1536 def deserialize(params) @X = params['X'] @Y = params['Y'] @Width = params['Width'] @Height = params['Height'] end |