Class: TencentCloud::Mrs::V20200910::PTNM
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::PTNM
- Defined in:
- lib/v20200910/models.rb
Overview
pTNM
Instance Attribute Summary collapse
- #Coords ⇒ Object
- #Index ⇒ Object
- #Name ⇒ Object
- #PM ⇒ Object
- #PN ⇒ Object
- #PT ⇒ Object
- #Src ⇒ Object
- #Value ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, index = nil, src = nil, value = nil, pt = nil, pn = nil, pm = nil, coords = nil) ⇒ PTNM
constructor
A new instance of PTNM.
Constructor Details
#initialize(name = nil, index = nil, src = nil, value = nil, pt = nil, pn = nil, pm = nil, coords = nil) ⇒ PTNM
Returns a new instance of PTNM.
7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 |
# File 'lib/v20200910/models.rb', line 7911 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
#Coords ⇒ Object
7909 7910 7911 |
# File 'lib/v20200910/models.rb', line 7909 def Coords @Coords end |
#Index ⇒ Object
7909 7910 7911 |
# File 'lib/v20200910/models.rb', line 7909 def Index @Index end |
#Name ⇒ Object
7909 7910 7911 |
# File 'lib/v20200910/models.rb', line 7909 def Name @Name end |
#PM ⇒ Object
7909 7910 7911 |
# File 'lib/v20200910/models.rb', line 7909 def PM @PM end |
#PN ⇒ Object
7909 7910 7911 |
# File 'lib/v20200910/models.rb', line 7909 def PN @PN end |
#PT ⇒ Object
7909 7910 7911 |
# File 'lib/v20200910/models.rb', line 7909 def PT @PT end |
#Src ⇒ Object
7909 7910 7911 |
# File 'lib/v20200910/models.rb', line 7909 def Src @Src end |
#Value ⇒ Object
7909 7910 7911 |
# File 'lib/v20200910/models.rb', line 7909 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 |
# File 'lib/v20200910/models.rb', line 7922 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 |