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.



9288
9289
9290
9291
9292
# File 'lib/v20200910/models.rb', line 9288

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

Instance Attribute Details

#ItemsObject

Parameters:

  • Text:

    段落文本

  • Items:

    结论详情

  • Page:

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



9286
9287
9288
# File 'lib/v20200910/models.rb', line 9286

def Items
  @Items
end

#PageObject

Parameters:

  • Text:

    段落文本

  • Items:

    结论详情

  • Page:

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



9286
9287
9288
# File 'lib/v20200910/models.rb', line 9286

def Page
  @Page
end

#TextObject

Parameters:

  • Text:

    段落文本

  • Items:

    结论详情

  • Page:

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



9286
9287
9288
# File 'lib/v20200910/models.rb', line 9286

def Text
  @Text
end

Instance Method Details

#deserialize(params) ⇒ Object



9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
# File 'lib/v20200910/models.rb', line 9294

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