Class: TencentCloud::Dc::V20180410::Coordinate

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

Overview

坐标,经维度描述

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lat = nil, lng = nil) ⇒ Coordinate

Returns a new instance of Coordinate.



376
377
378
379
# File 'lib/v20180410/models.rb', line 376

def initialize(lat=nil, lng=nil)
  @Lat = lat
  @Lng = lng
end

Instance Attribute Details

#Lat ⇒ Object

Parameters:

  • Lat: —

    纬度

  • Lng: —

    经度



374
375
376
# File 'lib/v20180410/models.rb', line 374

def Lat
  @Lat
end

#Lng ⇒ Object

Parameters:

  • Lat: —

    纬度

  • Lng: —

    经度



374
375
376
# File 'lib/v20180410/models.rb', line 374

def Lng
  @Lng
end

Instance Method Details

#deserialize(params) ⇒ Object



381
382
383
384
# File 'lib/v20180410/models.rb', line 381

def deserialize(params)
  @Lat = params['Lat']
  @Lng = params['Lng']
end