Class: TencentCloud::Ocr::V20181119::BusinessCardOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::BusinessCardOCRResponse
- Defined in:
- lib/v20181119/models.rb
Overview
BusinessCardOCR返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(businesscardinfos = nil, retimagebase64 = nil, angle = nil, requestid = nil) ⇒ BusinessCardOCRResponse
constructor
A new instance of BusinessCardOCRResponse.
Constructor Details
#initialize(businesscardinfos = nil, retimagebase64 = nil, angle = nil, requestid = nil) ⇒ BusinessCardOCRResponse
Returns a new instance of BusinessCardOCRResponse.
1041 1042 1043 1044 1045 1046 |
# File 'lib/v20181119/models.rb', line 1041 def initialize(businesscardinfos=nil, retimagebase64=nil, angle=nil, requestid=nil) @BusinessCardInfos = businesscardinfos @RetImageBase64 = retimagebase64 @Angle = angle @RequestId = requestid end |
Instance Attribute Details
#Angle ⇒ Object
1039 1040 1041 |
# File 'lib/v20181119/models.rb', line 1039 def Angle @Angle end |
#BusinessCardInfos ⇒ Object
1039 1040 1041 |
# File 'lib/v20181119/models.rb', line 1039 def BusinessCardInfos @BusinessCardInfos end |
#RequestId ⇒ Object
1039 1040 1041 |
# File 'lib/v20181119/models.rb', line 1039 def RequestId @RequestId end |
#RetImageBase64 ⇒ Object
1039 1040 1041 |
# File 'lib/v20181119/models.rb', line 1039 def RetImageBase64 @RetImageBase64 end |
Instance Method Details
#deserialize(params) ⇒ Object
1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 |
# File 'lib/v20181119/models.rb', line 1048 def deserialize(params) unless params['BusinessCardInfos'].nil? @BusinessCardInfos = [] params['BusinessCardInfos'].each do |i| businesscardinfo_tmp = BusinessCardInfo.new businesscardinfo_tmp.deserialize(i) @BusinessCardInfos << businesscardinfo_tmp end end @RetImageBase64 = params['RetImageBase64'] @Angle = params['Angle'] @RequestId = params['RequestId'] end |