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.
4083 4084 4085 4086 4087 |
# File 'lib/v20181119/models.rb', line 4083 def initialize(iswarn=nil, riskconfidence=nil, polygon=nil) @IsWarn = iswarn @RiskConfidence = riskconfidence @Polygon = polygon end |
Instance Attribute Details
#IsWarn ⇒ Object
4081 4082 4083 |
# File 'lib/v20181119/models.rb', line 4081 def IsWarn @IsWarn end |
#Polygon ⇒ Object
4081 4082 4083 |
# File 'lib/v20181119/models.rb', line 4081 def Polygon @Polygon end |
#RiskConfidence ⇒ Object
4081 4082 4083 |
# File 'lib/v20181119/models.rb', line 4081 def RiskConfidence @RiskConfidence end |
Instance Method Details
#deserialize(params) ⇒ Object
4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 |
# File 'lib/v20181119/models.rb', line 4089 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 |