Class: TencentCloud::Ocr::V20181119::Rect
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::Rect
- Defined in:
- lib/v20181119/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.
9799 9800 9801 9802 9803 9804 |
# File 'lib/v20181119/models.rb', line 9799 def initialize(x=nil, y=nil, width=nil, height=nil) @X = x @Y = y @Width = width @Height = height end |
Instance Attribute Details
#Height ⇒ Object
9797 9798 9799 |
# File 'lib/v20181119/models.rb', line 9797 def Height @Height end |
#Width ⇒ Object
9797 9798 9799 |
# File 'lib/v20181119/models.rb', line 9797 def Width @Width end |
#X ⇒ Object
9797 9798 9799 |
# File 'lib/v20181119/models.rb', line 9797 def X @X end |
#Y ⇒ Object
9797 9798 9799 |
# File 'lib/v20181119/models.rb', line 9797 def Y @Y end |
Instance Method Details
#deserialize(params) ⇒ Object
9806 9807 9808 9809 9810 9811 |
# File 'lib/v20181119/models.rb', line 9806 def deserialize(params) @X = params['X'] @Y = params['Y'] @Width = params['Width'] @Height = params['Height'] end |