Class: BaiduLBS::Geodata::GeoTable
- Inherits:
-
Client
- Object
- Client
- BaiduLBS::Geodata::GeoTable
show all
- Defined in:
- lib/baidu_lbs/geodata/geotable.rb
Class Method Summary
collapse
Methods included from Request
#connection, #get, #post, #request
Class Method Details
.create(params) ⇒ Object
4
5
6
|
# File 'lib/baidu_lbs/geodata/geotable.rb', line 4
def create(params)
post '/geodata/v3/geotable/create', params
end
|
.delete(id) ⇒ Object
26
27
28
|
# File 'lib/baidu_lbs/geodata/geotable.rb', line 26
def delete(id)
post '/geodata/v3/geotable/delete', id: id
end
|
.detail(id) ⇒ Object
12
13
14
|
# File 'lib/baidu_lbs/geodata/geotable.rb', line 12
def detail(id)
get '/geodata/v3/geotable/detail', id: id
end
|
.list ⇒ Object
8
9
10
|
# File 'lib/baidu_lbs/geodata/geotable.rb', line 8
def list
get '/geodata/v3/geotable/list'
end
|
.update(*id_or_params) ⇒ Object
16
17
18
19
20
21
22
23
24
|
# File 'lib/baidu_lbs/geodata/geotable.rb', line 16
def update(*id_or_params)
if id_or_params.size == 1
params = id_or_params[0]
elsif id_or_params.size == 2
params = id_or_params[1]
params[:id] = id_or_params[0]
end
post '/geodata/v3/geotable/update', params
end
|