Class: Rakuten::Api::Gora

Inherits:
Object
  • Object
show all
Defined in:
lib/rakuten/api/gora.rb

Constant Summary collapse

Search =
"Rakuten::Api::Gora.search"
DetailSearch =
"Rakuten::Api::Gora.detail_search"
PlanSearch =
"Rakuten::Api::Gora.plan_search"

Class Method Summary collapse

Class Method Details

.detail_search(opts = {}) ⇒ Object

Gora Detail Search API (version:2010-06-30)



22
23
24
25
26
27
# File 'lib/rakuten/api/gora.rb', line 22

def detail_search(opts={})
  opts[:version] = '2010-06-30' unless opts.key?(:version)
  opts[:operation] = 'GoraGolfCourseDetail' unless opts.key?(:operation)
  opts[:developerId] = Rakuten::Api.options[:applicationId] unless opts.key?(:developerId)
  Rakuten::Request.get("http://api.rakuten.co.jp/rws/3.0/json", opts.merge(Rakuten::Api.options))
end

.plan_search(opts = {}) ⇒ Object

Gora Plan Search API (version:2012-12-10)



30
31
32
33
34
35
# File 'lib/rakuten/api/gora.rb', line 30

def plan_search(opts={})
  opts[:version] = '2012-12-10' unless opts.key?(:version)
  opts[:operation] = 'GoraPlanSearch' unless opts.key?(:operation)
  opts[:developerId] = Rakuten::Api.options[:applicationId] unless opts.key?(:developerId)
  Rakuten::Request.get("http://api.rakuten.co.jp/rws/3.0/json", opts.merge(Rakuten::Api.options))
end

.search(opts = {}) ⇒ Object

Gora Search API (version:2010-06-30)



14
15
16
17
18
19
# File 'lib/rakuten/api/gora.rb', line 14

def search(opts={})
  opts[:version] = '2010-06-30' unless opts.key?(:version)
  opts[:operation] = 'GoraGolfCourseSearch' unless opts.key?(:operation)
  opts[:developerId] = Rakuten::Api.options[:applicationId] unless opts.key?(:developerId)
  Rakuten::Request.get("http://api.rakuten.co.jp/rws/3.0/json", opts.merge(Rakuten::Api.options))
end