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.
7933 7934 7935 7936 7937 7938 |
# File 'lib/v20181119/models.rb', line 7933 def initialize(lefttop=nil, righttop=nil, rightbottom=nil, leftbottom=nil) @LeftTop = lefttop @RightTop = righttop @RightBottom = rightbottom @LeftBottom = leftbottom end |
Instance Attribute Details
#LeftBottom ⇒ Object
7931 7932 7933 |
# File 'lib/v20181119/models.rb', line 7931 def LeftBottom @LeftBottom end |
#LeftTop ⇒ Object
7931 7932 7933 |
# File 'lib/v20181119/models.rb', line 7931 def LeftTop @LeftTop end |
#RightBottom ⇒ Object
7931 7932 7933 |
# File 'lib/v20181119/models.rb', line 7931 def RightBottom @RightBottom end |
#RightTop ⇒ Object
7931 7932 7933 |
# File 'lib/v20181119/models.rb', line 7931 def RightTop @RightTop end |
Instance Method Details
#deserialize(params) ⇒ Object
7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 |
# File 'lib/v20181119/models.rb', line 7940 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 |