Class: TencentCloud::Mrs::V20200910::IHCBlock

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200910/models.rb

Overview

IHC块

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index = nil, src = nil, name = nil, value = nil, coords = nil) ⇒ IHCBlock



4740
4741
4742
4743
4744
4745
4746
# File 'lib/v20200910/models.rb', line 4740

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

#CoordsObject



4738
4739
4740
# File 'lib/v20200910/models.rb', line 4738

def Coords
  @Coords
end

#IndexObject



4738
4739
4740
# File 'lib/v20200910/models.rb', line 4738

def Index
  @Index
end

#NameObject



4738
4739
4740
# File 'lib/v20200910/models.rb', line 4738

def Name
  @Name
end

#SrcObject



4738
4739
4740
# File 'lib/v20200910/models.rb', line 4738

def Src
  @Src
end

#ValueObject



4738
4739
4740
# File 'lib/v20200910/models.rb', line 4738

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
# File 'lib/v20200910/models.rb', line 4748

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