Class: TencentCloud::Ocr::V20181119::Coord

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

Overview

坐标

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x = nil, y = nil) ⇒ Coord

Returns a new instance of Coord.



1440
1441
1442
1443
# File 'lib/v20181119/models.rb', line 1440

def initialize(x=nil, y=nil)
  @X = x
  @Y = y
end

Instance Attribute Details

#XObject

Parameters:

  • X:

    横坐标

  • Y:

    纵坐标



1438
1439
1440
# File 'lib/v20181119/models.rb', line 1438

def X
  @X
end

#YObject

Parameters:

  • X:

    横坐标

  • Y:

    纵坐标



1438
1439
1440
# File 'lib/v20181119/models.rb', line 1438

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



1445
1446
1447
1448
# File 'lib/v20181119/models.rb', line 1445

def deserialize(params)
  @X = params['X']
  @Y = params['Y']
end