Class: TencentCloud::Tmt::V20180321::ItemValue

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

Overview

翻译结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sourcetext = nil, targettext = nil, x = nil, y = nil, w = nil, h = nil) ⇒ ItemValue

Returns a new instance of ItemValue.



318
319
320
321
322
323
324
325
# File 'lib/v20180321/models.rb', line 318

def initialize(sourcetext=nil, targettext=nil, x=nil, y=nil, w=nil, h=nil)
  @SourceText = sourcetext
  @TargetText = targettext
  @X = x
  @Y = y
  @W = w
  @H = h
end

Instance Attribute Details

#HObject

Parameters:

  • SourceText:

    识别出的源文

  • TargetText:

    翻译后的译文

  • X:

    X坐标

  • Y:

    Y坐标

  • W:

    宽度

  • H:

    高度



316
317
318
# File 'lib/v20180321/models.rb', line 316

def H
  @H
end

#SourceTextObject

Parameters:

  • SourceText:

    识别出的源文

  • TargetText:

    翻译后的译文

  • X:

    X坐标

  • Y:

    Y坐标

  • W:

    宽度

  • H:

    高度



316
317
318
# File 'lib/v20180321/models.rb', line 316

def SourceText
  @SourceText
end

#TargetTextObject

Parameters:

  • SourceText:

    识别出的源文

  • TargetText:

    翻译后的译文

  • X:

    X坐标

  • Y:

    Y坐标

  • W:

    宽度

  • H:

    高度



316
317
318
# File 'lib/v20180321/models.rb', line 316

def TargetText
  @TargetText
end

#WObject

Parameters:

  • SourceText:

    识别出的源文

  • TargetText:

    翻译后的译文

  • X:

    X坐标

  • Y:

    Y坐标

  • W:

    宽度

  • H:

    高度



316
317
318
# File 'lib/v20180321/models.rb', line 316

def W
  @W
end

#XObject

Parameters:

  • SourceText:

    识别出的源文

  • TargetText:

    翻译后的译文

  • X:

    X坐标

  • Y:

    Y坐标

  • W:

    宽度

  • H:

    高度



316
317
318
# File 'lib/v20180321/models.rb', line 316

def X
  @X
end

#YObject

Parameters:

  • SourceText:

    识别出的源文

  • TargetText:

    翻译后的译文

  • X:

    X坐标

  • Y:

    Y坐标

  • W:

    宽度

  • H:

    高度



316
317
318
# File 'lib/v20180321/models.rb', line 316

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



327
328
329
330
331
332
333
334
# File 'lib/v20180321/models.rb', line 327

def deserialize(params)
  @SourceText = params['SourceText']
  @TargetText = params['TargetText']
  @X = params['X']
  @Y = params['Y']
  @W = params['W']
  @H = params['H']
end