Class: TencentCloud::Mrs::V20200910::PTNM

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

Overview

pTNM

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, index = nil, src = nil, value = nil, pt = nil, pn = nil, pm = nil, coords = nil) ⇒ PTNM



7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
# File 'lib/v20200910/models.rb', line 7938

def initialize(name=nil, index=nil, src=nil, value=nil, pt=nil, pn=nil, pm=nil, coords=nil)
  @Name = name
  @Index = index
  @Src = src
  @Value = value
  @PT = pt
  @PN = pn
  @PM = pm
  @Coords = coords
end

Instance Attribute Details

#CoordsObject



7936
7937
7938
# File 'lib/v20200910/models.rb', line 7936

def Coords
  @Coords
end

#IndexObject



7936
7937
7938
# File 'lib/v20200910/models.rb', line 7936

def Index
  @Index
end

#NameObject



7936
7937
7938
# File 'lib/v20200910/models.rb', line 7936

def Name
  @Name
end

#PMObject



7936
7937
7938
# File 'lib/v20200910/models.rb', line 7936

def PM
  @PM
end

#PNObject



7936
7937
7938
# File 'lib/v20200910/models.rb', line 7936

def PN
  @PN
end

#PTObject



7936
7937
7938
# File 'lib/v20200910/models.rb', line 7936

def PT
  @PT
end

#SrcObject



7936
7937
7938
# File 'lib/v20200910/models.rb', line 7936

def Src
  @Src
end

#ValueObject



7936
7937
7938
# File 'lib/v20200910/models.rb', line 7936

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
# File 'lib/v20200910/models.rb', line 7949

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