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.
2568 2569 2570 2571 2572 |
# File 'lib/v20181119/models.rb', line 2568 def initialize(textdetections=nil, angel=nil, requestid=nil) @TextDetections = textdetections @Angel = angel @RequestId = requestid end |
Instance Attribute Details
#Angel ⇒ Object
2566 2567 2568 |
# File 'lib/v20181119/models.rb', line 2566 def Angel @Angel end |
#RequestId ⇒ Object
2566 2567 2568 |
# File 'lib/v20181119/models.rb', line 2566 def RequestId @RequestId end |
#TextDetections ⇒ Object
2566 2567 2568 |
# File 'lib/v20181119/models.rb', line 2566 def TextDetections @TextDetections end |
Instance Method Details
#deserialize(params) ⇒ Object
2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 |
# File 'lib/v20181119/models.rb', line 2574 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 |