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.



3915
3916
3917
3918
3919
# File 'lib/v20181119/models.rb', line 3915

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

Instance Attribute Details

#IsWarnObject

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



3913
3914
3915
# File 'lib/v20181119/models.rb', line 3913

def IsWarn
  @IsWarn
end

#PolygonObject

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



3913
3914
3915
# File 'lib/v20181119/models.rb', line 3913

def Polygon
  @Polygon
end

#SpecificMatterObject

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



3913
3914
3915
# File 'lib/v20181119/models.rb', line 3913

def SpecificMatter
  @SpecificMatter
end

Instance Method Details

#deserialize(params) ⇒ Object



3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
# File 'lib/v20181119/models.rb', line 3921

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