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.



3834
3835
3836
3837
3838
# File 'lib/v20181119/models.rb', line 3834

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

Instance Attribute Details

#IsWarnObject

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



3832
3833
3834
# File 'lib/v20181119/models.rb', line 3832

def IsWarn
  @IsWarn
end

#PolygonObject

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



3832
3833
3834
# File 'lib/v20181119/models.rb', line 3832

def Polygon
  @Polygon
end

#SpecificMatterObject

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



3832
3833
3834
# File 'lib/v20181119/models.rb', line 3832

def SpecificMatter
  @SpecificMatter
end

Instance Method Details

#deserialize(params) ⇒ Object



3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
# File 'lib/v20181119/models.rb', line 3840

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