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.
4798 4799 4800 4801 4802 4803 4804 |
# File 'lib/v20200910/models.rb', line 4798 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
4796 4797 4798 |
# File 'lib/v20200910/models.rb', line 4796 def Coords @Coords end |
#Index ⇒ Object
4796 4797 4798 |
# File 'lib/v20200910/models.rb', line 4796 def Index @Index end |
#Name ⇒ Object
4796 4797 4798 |
# File 'lib/v20200910/models.rb', line 4796 def Name @Name end |
#Src ⇒ Object
4796 4797 4798 |
# File 'lib/v20200910/models.rb', line 4796 def Src @Src end |
#Value ⇒ Object
4796 4797 4798 |
# File 'lib/v20200910/models.rb', line 4796 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 |
# File 'lib/v20200910/models.rb', line 4806 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 |