Class: TencentCloud::Ocr::V20181119::GeneralCardWarnInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::GeneralCardWarnInfo
- Defined in:
- lib/v20181119/models.rb
Overview
通用卡证鉴伪告警信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(iswarn = nil, riskconfidence = nil, polygon = nil) ⇒ GeneralCardWarnInfo
constructor
A new instance of GeneralCardWarnInfo.
Constructor Details
#initialize(iswarn = nil, riskconfidence = nil, polygon = nil) ⇒ GeneralCardWarnInfo
Returns a new instance of GeneralCardWarnInfo.
4280 4281 4282 4283 4284 |
# File 'lib/v20181119/models.rb', line 4280 def initialize(iswarn=nil, riskconfidence=nil, polygon=nil) @IsWarn = iswarn @RiskConfidence = riskconfidence @Polygon = polygon end |
Instance Attribute Details
#IsWarn ⇒ Object
4278 4279 4280 |
# File 'lib/v20181119/models.rb', line 4278 def IsWarn @IsWarn end |
#Polygon ⇒ Object
4278 4279 4280 |
# File 'lib/v20181119/models.rb', line 4278 def Polygon @Polygon end |
#RiskConfidence ⇒ Object
4278 4279 4280 |
# File 'lib/v20181119/models.rb', line 4278 def RiskConfidence @RiskConfidence end |
Instance Method Details
#deserialize(params) ⇒ Object
4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 |
# File 'lib/v20181119/models.rb', line 4286 def deserialize(params) @IsWarn = params['IsWarn'] @RiskConfidence = params['RiskConfidence'] unless params['Polygon'].nil? @Polygon = [] params['Polygon'].each do |i| polygon_tmp = Polygon.new polygon_tmp.deserialize(i) @Polygon << polygon_tmp end end end |