Class: TencentCloud::Tiia::V20190529::Rect
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tiia::V20190529::Rect
- 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) ⇒ Rect
constructor
A new instance of Rect.
Constructor Details
#initialize(x = nil, y = nil, width = nil, height = nil) ⇒ Rect
Returns a new instance of Rect.
1836 1837 1838 1839 1840 1841 |
# File 'lib/v20190529/models.rb', line 1836 def initialize(x=nil, y=nil, width=nil, height=nil) @X = x @Y = y @Width = width @Height = height end |
Instance Attribute Details
#Height ⇒ Object
1834 1835 1836 |
# File 'lib/v20190529/models.rb', line 1834 def Height @Height end |
#Width ⇒ Object
1834 1835 1836 |
# File 'lib/v20190529/models.rb', line 1834 def Width @Width end |
#X ⇒ Object
1834 1835 1836 |
# File 'lib/v20190529/models.rb', line 1834 def X @X end |
#Y ⇒ Object
1834 1835 1836 |
# File 'lib/v20190529/models.rb', line 1834 def Y @Y end |
Instance Method Details
#deserialize(params) ⇒ Object
1843 1844 1845 1846 1847 1848 |
# File 'lib/v20190529/models.rb', line 1843 def deserialize(params) @X = params['X'] @Y = params['Y'] @Width = params['Width'] @Height = params['Height'] end |