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

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

#CoordsObject

Parameters:

  • Index:

    索引

  • Src:

    原文

  • Name:

    名称

  • Value:

    具体值

  • Coords:

    坐标



4723
4724
4725
# File 'lib/v20200910/models.rb', line 4723

def Coords
  @Coords
end

#IndexObject

Parameters:

  • Index:

    索引

  • Src:

    原文

  • Name:

    名称

  • Value:

    具体值

  • Coords:

    坐标



4723
4724
4725
# File 'lib/v20200910/models.rb', line 4723

def Index
  @Index
end

#NameObject

Parameters:

  • Index:

    索引

  • Src:

    原文

  • Name:

    名称

  • Value:

    具体值

  • Coords:

    坐标



4723
4724
4725
# File 'lib/v20200910/models.rb', line 4723

def Name
  @Name
end

#SrcObject

Parameters:

  • Index:

    索引

  • Src:

    原文

  • Name:

    名称

  • Value:

    具体值

  • Coords:

    坐标



4723
4724
4725
# File 'lib/v20200910/models.rb', line 4723

def Src
  @Src
end

#ValueObject

Parameters:

  • Index:

    索引

  • Src:

    原文

  • Name:

    名称

  • Value:

    具体值

  • Coords:

    坐标



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