Module: BaiduApi::LbsCloud::V3::Geodata
- Defined in:
- lib/baidu_api/lbs_cloud/v3/geodata.rb,
lib/baidu_api/lbs_cloud/v3/geodata/job.rb,
lib/baidu_api/lbs_cloud/v3/geodata/poi.rb,
lib/baidu_api/lbs_cloud/v3/geodata/column.rb,
lib/baidu_api/lbs_cloud/v3/geodata/geotable.rb
Defined Under Namespace
Classes: Basement, Column, Geotable, Job, Poi
Class Method Summary
collapse
Class Method Details
.column ⇒ Object
30
31
32
|
# File 'lib/baidu_api/lbs_cloud/v3/geodata.rb', line 30
def self.column
instance && @basement.column
end
|
.geotable ⇒ Object
26
27
28
|
# File 'lib/baidu_api/lbs_cloud/v3/geodata.rb', line 26
def self.geotable
instance && @basement.geotable
end
|
.instance ⇒ Object
22
23
24
|
# File 'lib/baidu_api/lbs_cloud/v3/geodata.rb', line 22
def self.instance
@basement || fail('Has to setup Geodata before using')
end
|
.job ⇒ Object
38
39
40
|
# File 'lib/baidu_api/lbs_cloud/v3/geodata.rb', line 38
def self.job
instance && @basement.job
end
|
.poi ⇒ Object
34
35
36
|
# File 'lib/baidu_api/lbs_cloud/v3/geodata.rb', line 34
def self.poi
instance && @basement.poi
end
|
.setup(params) ⇒ Object
16
17
18
19
20
|
# File 'lib/baidu_api/lbs_cloud/v3/geodata.rb', line 16
def self.setup(params)
ak = params.fetch(:ak) { fail ':ak is required.' }
sk = params.fetch(:sk, nil)
@basement = Basement.new(ak, sk)
end
|