Class: TencentCloud::Ocr::V20181119::EnglishOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::EnglishOCRResponse
- Defined in:
- lib/v20181119/models.rb
Overview
EnglishOCR返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(textdetections = nil, angel = nil, requestid = nil) ⇒ EnglishOCRResponse
constructor
A new instance of EnglishOCRResponse.
Constructor Details
#initialize(textdetections = nil, angel = nil, requestid = nil) ⇒ EnglishOCRResponse
Returns a new instance of EnglishOCRResponse.
2680 2681 2682 2683 2684 |
# File 'lib/v20181119/models.rb', line 2680 def initialize(textdetections=nil, angel=nil, requestid=nil) @TextDetections = textdetections @Angel = angel @RequestId = requestid end |
Instance Attribute Details
#Angel ⇒ Object
2678 2679 2680 |
# File 'lib/v20181119/models.rb', line 2678 def Angel @Angel end |
#RequestId ⇒ Object
2678 2679 2680 |
# File 'lib/v20181119/models.rb', line 2678 def RequestId @RequestId end |
#TextDetections ⇒ Object
2678 2679 2680 |
# File 'lib/v20181119/models.rb', line 2678 def TextDetections @TextDetections end |
Instance Method Details
#deserialize(params) ⇒ Object
2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 |
# File 'lib/v20181119/models.rb', line 2686 def deserialize(params) unless params['TextDetections'].nil? @TextDetections = [] params['TextDetections'].each do |i| textdetectionen_tmp = TextDetectionEn.new textdetectionen_tmp.deserialize(i) @TextDetections << textdetectionen_tmp end end @Angel = params['Angel'] @RequestId = params['RequestId'] end |