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.
2642 2643 2644 2645 2646 |
# File 'lib/v20181119/models.rb', line 2642 def initialize(textdetections=nil, angel=nil, requestid=nil) @TextDetections = textdetections @Angel = angel @RequestId = requestid end |
Instance Attribute Details
#Angel ⇒ Object
2640 2641 2642 |
# File 'lib/v20181119/models.rb', line 2640 def Angel @Angel end |
#RequestId ⇒ Object
2640 2641 2642 |
# File 'lib/v20181119/models.rb', line 2640 def RequestId @RequestId end |
#TextDetections ⇒ Object
2640 2641 2642 |
# File 'lib/v20181119/models.rb', line 2640 def TextDetections @TextDetections end |
Instance Method Details
#deserialize(params) ⇒ Object
2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 |
# File 'lib/v20181119/models.rb', line 2648 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 |