Class: TencentCloud::Mrs::V20200910::BaseItem

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

Overview

基础类型

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, src = nil, value = nil, _alias = nil, coords = nil) ⇒ BaseItem

Returns a new instance of BaseItem.



174
175
176
177
178
179
180
# File 'lib/v20200910/models.rb', line 174

def initialize(name=nil, src=nil, value=nil, _alias=nil, coords=nil)
  @Name = name
  @Src = src
  @Value = value
  @Alias = _alias
  @Coords = coords
end

Instance Attribute Details

#AliasObject

Parameters:

  • Name:

    类型名称

  • Src:

    原始文本

  • Value:

    归一化后值

  • Alias:

    别名

  • Coords:

    四点坐标



172
173
174
# File 'lib/v20200910/models.rb', line 172

def Alias
  @Alias
end

#CoordsObject

Parameters:

  • Name:

    类型名称

  • Src:

    原始文本

  • Value:

    归一化后值

  • Alias:

    别名

  • Coords:

    四点坐标



172
173
174
# File 'lib/v20200910/models.rb', line 172

def Coords
  @Coords
end

#NameObject

Parameters:

  • Name:

    类型名称

  • Src:

    原始文本

  • Value:

    归一化后值

  • Alias:

    别名

  • Coords:

    四点坐标



172
173
174
# File 'lib/v20200910/models.rb', line 172

def Name
  @Name
end

#SrcObject

Parameters:

  • Name:

    类型名称

  • Src:

    原始文本

  • Value:

    归一化后值

  • Alias:

    别名

  • Coords:

    四点坐标



172
173
174
# File 'lib/v20200910/models.rb', line 172

def Src
  @Src
end

#ValueObject

Parameters:

  • Name:

    类型名称

  • Src:

    原始文本

  • Value:

    归一化后值

  • Alias:

    别名

  • Coords:

    四点坐标



172
173
174
# File 'lib/v20200910/models.rb', line 172

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



182
183
184
185
186
187
188
189
190
191
192
193
194
195
# File 'lib/v20200910/models.rb', line 182

def deserialize(params)
  @Name = params['Name']
  @Src = params['Src']
  @Value = params['Value']
  @Alias = params['Alias']
  unless params['Coords'].nil?
    @Coords = []
    params['Coords'].each do |i|
      coord_tmp = Coord.new
      coord_tmp.deserialize(i)
      @Coords << coord_tmp
    end
  end
end