Class: TencentCloud::Ocr::V20181119::ArithmeticOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::ArithmeticOCRResponse
- Defined in:
- lib/v20181119/models.rb
Overview
ArithmeticOCR返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(textdetections = nil, angle = nil, requestid = nil) ⇒ ArithmeticOCRResponse
constructor
A new instance of ArithmeticOCRResponse.
Constructor Details
#initialize(textdetections = nil, angle = nil, requestid = nil) ⇒ ArithmeticOCRResponse
Returns a new instance of ArithmeticOCRResponse.
410 411 412 413 414 |
# File 'lib/v20181119/models.rb', line 410 def initialize(textdetections=nil, angle=nil, requestid=nil) @TextDetections = textdetections @Angle = angle @RequestId = requestid end |
Instance Attribute Details
#Angle ⇒ Object
408 409 410 |
# File 'lib/v20181119/models.rb', line 408 def Angle @Angle end |
#RequestId ⇒ Object
408 409 410 |
# File 'lib/v20181119/models.rb', line 408 def RequestId @RequestId end |
#TextDetections ⇒ Object
408 409 410 |
# File 'lib/v20181119/models.rb', line 408 def TextDetections @TextDetections end |
Instance Method Details
#deserialize(params) ⇒ Object
416 417 418 419 420 421 422 423 424 425 426 427 |
# File 'lib/v20181119/models.rb', line 416 def deserialize(params) unless params['TextDetections'].nil? @TextDetections = [] params['TextDetections'].each do |i| textarithmetic_tmp = TextArithmetic.new textarithmetic_tmp.deserialize(i) @TextDetections << textarithmetic_tmp end end @Angle = params['Angle'] @RequestId = params['RequestId'] end |