Class: TencentCloud::Mrs::V20200910::IHCBlock
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::IHCBlock
- 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) ⇒ IHCBlock
constructor
A new instance of IHCBlock.
Constructor Details
#initialize(index = nil, src = nil, name = nil, value = nil, coords = nil) ⇒ IHCBlock
Returns a new instance of IHCBlock.
4725 4726 4727 4728 4729 4730 4731 |
# File 'lib/v20200910/models.rb', line 4725 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
4723 4724 4725 |
# File 'lib/v20200910/models.rb', line 4723 def Coords @Coords end |
#Index ⇒ Object
4723 4724 4725 |
# File 'lib/v20200910/models.rb', line 4723 def Index @Index end |
#Name ⇒ Object
4723 4724 4725 |
# File 'lib/v20200910/models.rb', line 4723 def Name @Name end |
#Src ⇒ Object
4723 4724 4725 |
# File 'lib/v20200910/models.rb', line 4723 def Src @Src end |
#Value ⇒ Object
4723 4724 4725 |
# File 'lib/v20200910/models.rb', line 4723 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 |
# File 'lib/v20200910/models.rb', line 4733 def deserialize(params) @Index = params['Index'] @Src = params['Src'] @Name = params['Name'] unless params['Value'].nil? @Value = ValueBlock.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 |