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.



8660
8661
8662
8663
# File 'lib/v20181119/models.rb', line 8660

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

Instance Attribute Details

#OnlineTaxiItineraryInfosObject

Parameters:

  • OnlineTaxiItineraryInfos:

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

  • RequestId:

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



8658
8659
8660
# File 'lib/v20181119/models.rb', line 8658

def OnlineTaxiItineraryInfos
  @OnlineTaxiItineraryInfos
end

#RequestIdObject

Parameters:

  • OnlineTaxiItineraryInfos:

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

  • RequestId:

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



8658
8659
8660
# File 'lib/v20181119/models.rb', line 8658

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
# File 'lib/v20181119/models.rb', line 8665

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