Class: TencentCloud::Ocr::V20181119::GeneralHandwritingOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::GeneralHandwritingOCRResponse
- Defined in:
- lib/v20181119/models.rb
Overview
GeneralHandwritingOCR返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(textdetections = nil, angel = nil, requestid = nil) ⇒ GeneralHandwritingOCRResponse
constructor
A new instance of GeneralHandwritingOCRResponse.
Constructor Details
#initialize(textdetections = nil, angel = nil, requestid = nil) ⇒ GeneralHandwritingOCRResponse
Returns a new instance of GeneralHandwritingOCRResponse.
3757 3758 3759 3760 3761 |
# File 'lib/v20181119/models.rb', line 3757 def initialize(textdetections=nil, angel=nil, requestid=nil) @TextDetections = textdetections @Angel = angel @RequestId = requestid end |
Instance Attribute Details
#Angel ⇒ Object
3755 3756 3757 |
# File 'lib/v20181119/models.rb', line 3755 def Angel @Angel end |
#RequestId ⇒ Object
3755 3756 3757 |
# File 'lib/v20181119/models.rb', line 3755 def RequestId @RequestId end |
#TextDetections ⇒ Object
3755 3756 3757 |
# File 'lib/v20181119/models.rb', line 3755 def TextDetections @TextDetections end |
Instance Method Details
#deserialize(params) ⇒ Object
3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 |
# File 'lib/v20181119/models.rb', line 3763 def deserialize(params) unless params['TextDetections'].nil? @TextDetections = [] params['TextDetections'].each do |i| textgeneralhandwriting_tmp = TextGeneralHandwriting.new textgeneralhandwriting_tmp.deserialize(i) @TextDetections << textgeneralhandwriting_tmp end end @Angel = params['Angel'] @RequestId = params['RequestId'] end |