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.
1114 1115 1116 1117 1118 1119 |
# File 'lib/v20181119/models.rb', line 1114 def initialize(businesscardinfos=nil, retimagebase64=nil, angle=nil, requestid=nil) @BusinessCardInfos = businesscardinfos @RetImageBase64 = retimagebase64 @Angle = angle @RequestId = requestid end |
Instance Attribute Details
#Angle ⇒ Object
1112 1113 1114 |
# File 'lib/v20181119/models.rb', line 1112 def Angle @Angle end |
#BusinessCardInfos ⇒ Object
1112 1113 1114 |
# File 'lib/v20181119/models.rb', line 1112 def BusinessCardInfos @BusinessCardInfos end |
#RequestId ⇒ Object
1112 1113 1114 |
# File 'lib/v20181119/models.rb', line 1112 def RequestId @RequestId end |
#RetImageBase64 ⇒ Object
1112 1113 1114 |
# File 'lib/v20181119/models.rb', line 1112 def RetImageBase64 @RetImageBase64 end |
Instance Method Details
#deserialize(params) ⇒ Object
1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'lib/v20181119/models.rb', line 1121 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 |