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
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
#Coords ⇒ Object
7936 7937 7938 |
# File 'lib/v20200910/models.rb', line 7936 def Coords @Coords end |
#Index ⇒ Object
7936 7937 7938 |
# File 'lib/v20200910/models.rb', line 7936 def Index @Index end |
#Name ⇒ Object
7936 7937 7938 |
# File 'lib/v20200910/models.rb', line 7936 def Name @Name end |
#PM ⇒ Object
7936 7937 7938 |
# File 'lib/v20200910/models.rb', line 7936 def PM @PM end |
#PN ⇒ Object
7936 7937 7938 |
# File 'lib/v20200910/models.rb', line 7936 def PN @PN end |
#PT ⇒ Object
7936 7937 7938 |
# File 'lib/v20200910/models.rb', line 7936 def PT @PT end |
#Src ⇒ Object
7936 7937 7938 |
# File 'lib/v20200910/models.rb', line 7936 def Src @Src end |
#Value ⇒ Object
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 |