Class: TencentCloud::Mrs::V20200910::PhysicalBaseItem

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

Overview

体检报告基础信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, src = nil, value = nil, coords = nil) ⇒ PhysicalBaseItem

Returns a new instance of PhysicalBaseItem.



8748
8749
8750
8751
8752
8753
# File 'lib/v20200910/models.rb', line 8748

def initialize(name=nil, src=nil, value=nil, coords=nil)
  @Name = name
  @Src = src
  @Value = value
  @Coords = coords
end

Instance Attribute Details

#CoordsObject

Parameters:

  • Name:

    类型

  • Src:

    原始文本

  • Value:

    归一化后值

  • Coords:

    四点坐标



8746
8747
8748
# File 'lib/v20200910/models.rb', line 8746

def Coords
  @Coords
end

#NameObject

Parameters:

  • Name:

    类型

  • Src:

    原始文本

  • Value:

    归一化后值

  • Coords:

    四点坐标



8746
8747
8748
# File 'lib/v20200910/models.rb', line 8746

def Name
  @Name
end

#SrcObject

Parameters:

  • Name:

    类型

  • Src:

    原始文本

  • Value:

    归一化后值

  • Coords:

    四点坐标



8746
8747
8748
# File 'lib/v20200910/models.rb', line 8746

def Src
  @Src
end

#ValueObject

Parameters:

  • Name:

    类型

  • Src:

    原始文本

  • Value:

    归一化后值

  • Coords:

    四点坐标



8746
8747
8748
# File 'lib/v20200910/models.rb', line 8746

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
# File 'lib/v20200910/models.rb', line 8755

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