Class: TencentCloud::Ocr::V20181119::GeneralWarnInfo

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20181119/models.rb

Overview

通用告警详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(iswarn = nil, polygon = nil, specificmatter = nil) ⇒ GeneralWarnInfo

Returns a new instance of GeneralWarnInfo.



4306
4307
4308
4309
4310
# File 'lib/v20181119/models.rb', line 4306

def initialize(iswarn=nil, polygon=nil, specificmatter=nil)
  @IsWarn = iswarn
  @Polygon = polygon
  @SpecificMatter = specificmatter
end

Instance Attribute Details

#IsWarnObject

Finger:由手指导致的不完整,仅在不完整告警中返回



4304
4305
4306
# File 'lib/v20181119/models.rb', line 4304

def IsWarn
  @IsWarn
end

#PolygonObject

Finger:由手指导致的不完整,仅在不完整告警中返回



4304
4305
4306
# File 'lib/v20181119/models.rb', line 4304

def Polygon
  @Polygon
end

#SpecificMatterObject

Finger:由手指导致的不完整,仅在不完整告警中返回



4304
4305
4306
# File 'lib/v20181119/models.rb', line 4304

def SpecificMatter
  @SpecificMatter
end

Instance Method Details

#deserialize(params) ⇒ Object



4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
# File 'lib/v20181119/models.rb', line 4312

def deserialize(params)
  @IsWarn = params['IsWarn']
  unless params['Polygon'].nil?
    @Polygon = []
    params['Polygon'].each do |i|
      polygon_tmp = Polygon.new
      polygon_tmp.deserialize(i)
      @Polygon << polygon_tmp
    end
  end
  @SpecificMatter = params['SpecificMatter']
end