Class: TencentCloud::Ocr::V20181119::QrcodeOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::QrcodeOCRResponse
- Defined in:
- lib/v20181119/models.rb
Overview
QrcodeOCR返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(coderesults = nil, imgsize = nil, requestid = nil) ⇒ QrcodeOCRResponse
constructor
A new instance of QrcodeOCRResponse.
Constructor Details
#initialize(coderesults = nil, imgsize = nil, requestid = nil) ⇒ QrcodeOCRResponse
Returns a new instance of QrcodeOCRResponse.
7181 7182 7183 7184 7185 |
# File 'lib/v20181119/models.rb', line 7181 def initialize(coderesults=nil, imgsize=nil, requestid=nil) @CodeResults = coderesults @ImgSize = imgsize @RequestId = requestid end |
Instance Attribute Details
#CodeResults ⇒ Object
7179 7180 7181 |
# File 'lib/v20181119/models.rb', line 7179 def CodeResults @CodeResults end |
#ImgSize ⇒ Object
7179 7180 7181 |
# File 'lib/v20181119/models.rb', line 7179 def ImgSize @ImgSize end |
#RequestId ⇒ Object
7179 7180 7181 |
# File 'lib/v20181119/models.rb', line 7179 def RequestId @RequestId end |
Instance Method Details
#deserialize(params) ⇒ Object
7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 |
# File 'lib/v20181119/models.rb', line 7187 def deserialize(params) unless params['CodeResults'].nil? @CodeResults = [] params['CodeResults'].each do |i| qrcoderesultsinfo_tmp = QrcodeResultsInfo.new qrcoderesultsinfo_tmp.deserialize(i) @CodeResults << qrcoderesultsinfo_tmp end end unless params['ImgSize'].nil? @ImgSize = QrcodeImgSize.new @ImgSize.deserialize(params['ImgSize']) end @RequestId = params['RequestId'] end |