Class: Rakuten::Api::Gora
- Inherits:
-
Object
- Object
- Rakuten::Api::Gora
- 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
-
.detail_search(opts = {}) ⇒ Object
Gora Detail Search API (version:2010-06-30).
-
.plan_search(opts = {}) ⇒ Object
Gora Plan Search API (version:2012-12-10).
-
.search(opts = {}) ⇒ Object
Gora Search API (version:2010-06-30).
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.[:applicationId] unless opts.key?(:developerId) Rakuten::Request.get("http://api.rakuten.co.jp/rws/3.0/json", opts.merge(Rakuten::Api.)) 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.[:applicationId] unless opts.key?(:developerId) Rakuten::Request.get("http://api.rakuten.co.jp/rws/3.0/json", opts.merge(Rakuten::Api.)) 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.[:applicationId] unless opts.key?(:developerId) Rakuten::Request.get("http://api.rakuten.co.jp/rws/3.0/json", opts.merge(Rakuten::Api.)) end |