Class: TencentCloud::Ocr::V20181119::QrcodePositionObj
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::QrcodePositionObj
- Defined in:
- lib/v20181119/models.rb
Overview
二维码/条形码坐标信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(lefttop = nil, righttop = nil, rightbottom = nil, leftbottom = nil) ⇒ QrcodePositionObj
constructor
A new instance of QrcodePositionObj.
Constructor Details
#initialize(lefttop = nil, righttop = nil, rightbottom = nil, leftbottom = nil) ⇒ QrcodePositionObj
Returns a new instance of QrcodePositionObj.
8008 8009 8010 8011 8012 8013 |
# File 'lib/v20181119/models.rb', line 8008 def initialize(lefttop=nil, righttop=nil, rightbottom=nil, leftbottom=nil) @LeftTop = lefttop @RightTop = righttop @RightBottom = rightbottom @LeftBottom = leftbottom end |
Instance Attribute Details
#LeftBottom ⇒ Object
8006 8007 8008 |
# File 'lib/v20181119/models.rb', line 8006 def LeftBottom @LeftBottom end |
#LeftTop ⇒ Object
8006 8007 8008 |
# File 'lib/v20181119/models.rb', line 8006 def LeftTop @LeftTop end |
#RightBottom ⇒ Object
8006 8007 8008 |
# File 'lib/v20181119/models.rb', line 8006 def RightBottom @RightBottom end |
#RightTop ⇒ Object
8006 8007 8008 |
# File 'lib/v20181119/models.rb', line 8006 def RightTop @RightTop end |
Instance Method Details
#deserialize(params) ⇒ Object
8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 |
# File 'lib/v20181119/models.rb', line 8015 def deserialize(params) unless params['LeftTop'].nil? @LeftTop = Coord.new @LeftTop.deserialize(params['LeftTop']) end unless params['RightTop'].nil? @RightTop = Coord.new @RightTop.deserialize(params['RightTop']) end unless params['RightBottom'].nil? @RightBottom = Coord.new @RightBottom.deserialize(params['RightBottom']) end unless params['LeftBottom'].nil? @LeftBottom = Coord.new @LeftBottom.deserialize(params['LeftBottom']) end end |