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.
7217 7218 7219 7220 7221 7222 |
# File 'lib/v20181119/models.rb', line 7217 def initialize(lefttop=nil, righttop=nil, rightbottom=nil, leftbottom=nil) @LeftTop = lefttop @RightTop = righttop @RightBottom = rightbottom @LeftBottom = leftbottom end |
Instance Attribute Details
#LeftBottom ⇒ Object
7215 7216 7217 |
# File 'lib/v20181119/models.rb', line 7215 def LeftBottom @LeftBottom end |
#LeftTop ⇒ Object
7215 7216 7217 |
# File 'lib/v20181119/models.rb', line 7215 def LeftTop @LeftTop end |
#RightBottom ⇒ Object
7215 7216 7217 |
# File 'lib/v20181119/models.rb', line 7215 def RightBottom @RightBottom end |
#RightTop ⇒ Object
7215 7216 7217 |
# File 'lib/v20181119/models.rb', line 7215 def RightTop @RightTop end |
Instance Method Details
#deserialize(params) ⇒ Object
7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 |
# File 'lib/v20181119/models.rb', line 7224 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 |