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

.columnObject



30
31
32
# File 'lib/baidu_api/lbs_cloud/v3/geodata.rb', line 30

def self.column
  instance && @basement.column
end

.geotableObject



26
27
28
# File 'lib/baidu_api/lbs_cloud/v3/geodata.rb', line 26

def self.geotable
  instance && @basement.geotable
end

.instanceObject



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

.jobObject



38
39
40
# File 'lib/baidu_api/lbs_cloud/v3/geodata.rb', line 38

def self.job
  instance && @basement.job
end

.poiObject



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