Class: TencentCloud::Ocr::V20181119::AdvertiseOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::AdvertiseOCRResponse
- Defined in:
- lib/v20181119/models.rb
Overview
AdvertiseOCR返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(textdetections = nil, imagesize = nil, requestid = nil) ⇒ AdvertiseOCRResponse
constructor
A new instance of AdvertiseOCRResponse.
Constructor Details
#initialize(textdetections = nil, imagesize = nil, requestid = nil) ⇒ AdvertiseOCRResponse
Returns a new instance of AdvertiseOCRResponse.
55 56 57 58 59 |
# File 'lib/v20181119/models.rb', line 55 def initialize(textdetections=nil, imagesize=nil, requestid=nil) @TextDetections = textdetections @ImageSize = imagesize @RequestId = requestid end |
Instance Attribute Details
#ImageSize ⇒ Object
53 54 55 |
# File 'lib/v20181119/models.rb', line 53 def ImageSize @ImageSize end |
#RequestId ⇒ Object
53 54 55 |
# File 'lib/v20181119/models.rb', line 53 def RequestId @RequestId end |
#TextDetections ⇒ Object
53 54 55 |
# File 'lib/v20181119/models.rb', line 53 def TextDetections @TextDetections end |
Instance Method Details
#deserialize(params) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/v20181119/models.rb', line 61 def deserialize(params) unless params['TextDetections'].nil? @TextDetections = [] params['TextDetections'].each do |i| advertisetextdetection_tmp = AdvertiseTextDetection.new advertisetextdetection_tmp.deserialize(i) @TextDetections << advertisetextdetection_tmp end end unless params['ImageSize'].nil? @ImageSize = ImageSize.new @ImageSize.deserialize(params['ImageSize']) end @RequestId = params['RequestId'] end |