Class: TencentCloud::Ocr::V20181119::RecognizeOnlineTaxiItineraryOCRResponse

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

Overview

RecognizeOnlineTaxiItineraryOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(onlinetaxiitineraryinfos = nil, requestid = nil) ⇒ RecognizeOnlineTaxiItineraryOCRResponse

Returns a new instance of RecognizeOnlineTaxiItineraryOCRResponse.



9385
9386
9387
9388
# File 'lib/v20181119/models.rb', line 9385

def initialize(onlinetaxiitineraryinfos=nil, requestid=nil)
  @OnlineTaxiItineraryInfos = onlinetaxiitineraryinfos
  @RequestId = requestid
end

Instance Attribute Details

#OnlineTaxiItineraryInfosObject

Parameters:

  • OnlineTaxiItineraryInfos:

    网约车行程单识别结果,具体内容请点击左侧链接。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



9383
9384
9385
# File 'lib/v20181119/models.rb', line 9383

def OnlineTaxiItineraryInfos
  @OnlineTaxiItineraryInfos
end

#RequestIdObject

Parameters:

  • OnlineTaxiItineraryInfos:

    网约车行程单识别结果,具体内容请点击左侧链接。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



9383
9384
9385
# File 'lib/v20181119/models.rb', line 9383

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
# File 'lib/v20181119/models.rb', line 9390

def deserialize(params)
  unless params['OnlineTaxiItineraryInfos'].nil?
    @OnlineTaxiItineraryInfos = []
    params['OnlineTaxiItineraryInfos'].each do |i|
      onlinetaxiitineraryinfo_tmp = OnlineTaxiItineraryInfo.new
      onlinetaxiitineraryinfo_tmp.deserialize(i)
      @OnlineTaxiItineraryInfos << onlinetaxiitineraryinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end