Class: TencentCloud::Mrs::V20200910::ResultInfo

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

Overview

结论信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text = nil, items = nil, page = nil) ⇒ ResultInfo

Returns a new instance of ResultInfo.



9315
9316
9317
9318
9319
# File 'lib/v20200910/models.rb', line 9315

def initialize(text=nil, items=nil, page=nil)
  @Text = text
  @Items = items
  @Page = page
end

Instance Attribute Details

#ItemsObject

Parameters:

  • Text:

    段落文本

  • Items:

    结论详情

  • Page:

    数据在原PDF文件中的第几页



9313
9314
9315
# File 'lib/v20200910/models.rb', line 9313

def Items
  @Items
end

#PageObject

Parameters:

  • Text:

    段落文本

  • Items:

    结论详情

  • Page:

    数据在原PDF文件中的第几页



9313
9314
9315
# File 'lib/v20200910/models.rb', line 9313

def Page
  @Page
end

#TextObject

Parameters:

  • Text:

    段落文本

  • Items:

    结论详情

  • Page:

    数据在原PDF文件中的第几页



9313
9314
9315
# File 'lib/v20200910/models.rb', line 9313

def Text
  @Text
end

Instance Method Details

#deserialize(params) ⇒ Object



9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
# File 'lib/v20200910/models.rb', line 9321

def deserialize(params)
  unless params['Text'].nil?
    @Text = BaseInfo.new
    @Text.deserialize(params['Text'])
  end
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      baseinfo_tmp = BaseInfo.new
      baseinfo_tmp.deserialize(i)
      @Items << baseinfo_tmp
    end
  end
  @Page = params['Page']
end