Class: TencentCloud::Mrs::V20200910::InvasiveV2

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

Overview

侵犯

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index = nil, part = nil, positive = nil, src = nil, coords = nil) ⇒ InvasiveV2

Returns a new instance of InvasiveV2.



6022
6023
6024
6025
6026
6027
6028
# File 'lib/v20200910/models.rb', line 6022

def initialize(index=nil, part=nil, positive=nil, src=nil, coords=nil)
  @Index = index
  @Part = part
  @Positive = positive
  @Src = src
  @Coords = coords
end

Instance Attribute Details

#CoordsObject

Parameters:

  • Index:

    索引

  • Part:

    部位

  • Positive:

    阴性或阳性

  • Src:

    原文

  • Coords:

    原文对应坐标



6020
6021
6022
# File 'lib/v20200910/models.rb', line 6020

def Coords
  @Coords
end

#IndexObject

Parameters:

  • Index:

    索引

  • Part:

    部位

  • Positive:

    阴性或阳性

  • Src:

    原文

  • Coords:

    原文对应坐标



6020
6021
6022
# File 'lib/v20200910/models.rb', line 6020

def Index
  @Index
end

#PartObject

Parameters:

  • Index:

    索引

  • Part:

    部位

  • Positive:

    阴性或阳性

  • Src:

    原文

  • Coords:

    原文对应坐标



6020
6021
6022
# File 'lib/v20200910/models.rb', line 6020

def Part
  @Part
end

#PositiveObject

Parameters:

  • Index:

    索引

  • Part:

    部位

  • Positive:

    阴性或阳性

  • Src:

    原文

  • Coords:

    原文对应坐标



6020
6021
6022
# File 'lib/v20200910/models.rb', line 6020

def Positive
  @Positive
end

#SrcObject

Parameters:

  • Index:

    索引

  • Part:

    部位

  • Positive:

    阴性或阳性

  • Src:

    原文

  • Coords:

    原文对应坐标



6020
6021
6022
# File 'lib/v20200910/models.rb', line 6020

def Src
  @Src
end

Instance Method Details

#deserialize(params) ⇒ Object



6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
# File 'lib/v20200910/models.rb', line 6030

def deserialize(params)
  @Index = params['Index']
  unless params['Part'].nil?
    @Part = Part.new
    @Part.deserialize(params['Part'])
  end
  @Positive = params['Positive']
  @Src = params['Src']
  unless params['Coords'].nil?
    @Coords = []
    params['Coords'].each do |i|
      coord_tmp = Coord.new
      coord_tmp.deserialize(i)
      @Coords << coord_tmp
    end
  end
end