Class: TencentCloud::Ocr::V20181119::LineInfo

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

Overview

按行输出,行序号

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lines = nil) ⇒ LineInfo

Returns a new instance of LineInfo.



5178
5179
5180
# File 'lib/v20181119/models.rb', line 5178

def initialize(lines=nil)
  @Lines = lines
end

Instance Attribute Details

#LinesObject

Parameters:

  • Lines:

    每行的一个元素



5176
5177
5178
# File 'lib/v20181119/models.rb', line 5176

def Lines
  @Lines
end

Instance Method Details

#deserialize(params) ⇒ Object



5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
# File 'lib/v20181119/models.rb', line 5182

def deserialize(params)
  unless params['Lines'].nil?
    @Lines = []
    params['Lines'].each do |i|
      iteminfo_tmp = ItemInfo.new
      iteminfo_tmp.deserialize(i)
      @Lines << iteminfo_tmp
    end
  end
end