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.
10011 10012 10013 10014 10015 10016 |
# File 'lib/v20181119/models.rb', line 10011 def initialize(x=nil, y=nil, width=nil, height=nil) @X = x @Y = y @Width = width @Height = height end |
Instance Attribute Details
#Height ⇒ Object
10009 10010 10011 |
# File 'lib/v20181119/models.rb', line 10009 def Height @Height end |
#Width ⇒ Object
10009 10010 10011 |
# File 'lib/v20181119/models.rb', line 10009 def Width @Width end |
#X ⇒ Object
10009 10010 10011 |
# File 'lib/v20181119/models.rb', line 10009 def X @X end |
#Y ⇒ Object
10009 10010 10011 |
# File 'lib/v20181119/models.rb', line 10009 def Y @Y end |
Instance Method Details
#deserialize(params) ⇒ Object
10018 10019 10020 10021 10022 10023 |
# File 'lib/v20181119/models.rb', line 10018 def deserialize(params) @X = params['X'] @Y = params['Y'] @Width = params['Width'] @Height = params['Height'] end |