Class: TencentCloud::Mrs::V20200910::IHCV2
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::IHCV2
- Defined in:
- lib/v20200910/models.rb
Overview
IHC
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(index = nil, src = nil, name = nil, value = nil, coords = nil) ⇒ IHCV2
constructor
A new instance of IHCV2.
Constructor Details
#initialize(index = nil, src = nil, name = nil, value = nil, coords = nil) ⇒ IHCV2
Returns a new instance of IHCV2.
4813 4814 4815 4816 4817 4818 4819 |
# File 'lib/v20200910/models.rb', line 4813 def initialize(index=nil, src=nil, name=nil, value=nil, coords=nil) @Index = index @Src = src @Name = name @Value = value @Coords = coords end |
Instance Attribute Details
#Coords ⇒ Object
4811 4812 4813 |
# File 'lib/v20200910/models.rb', line 4811 def Coords @Coords end |
#Index ⇒ Object
4811 4812 4813 |
# File 'lib/v20200910/models.rb', line 4811 def Index @Index end |
#Name ⇒ Object
4811 4812 4813 |
# File 'lib/v20200910/models.rb', line 4811 def Name @Name end |
#Src ⇒ Object
4811 4812 4813 |
# File 'lib/v20200910/models.rb', line 4811 def Src @Src end |
#Value ⇒ Object
4811 4812 4813 |
# File 'lib/v20200910/models.rb', line 4811 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 |
# File 'lib/v20200910/models.rb', line 4821 def deserialize(params) @Index = params['Index'] @Src = params['Src'] @Name = params['Name'] unless params['Value'].nil? @Value = Value.new @Value.deserialize(params['Value']) end unless params['Coords'].nil? @Coords = [] params['Coords'].each do |i| coord_tmp = Coord.new coord_tmp.deserialize(i) @Coords << coord_tmp end end end |