Class: Rakuten::Api::Travel
- Inherits:
-
Object
- Object
- Rakuten::Api::Travel
- Defined in:
- lib/rakuten/api/travel.rb
Constant Summary collapse
- Search =
"Rakuten::Api::Travel.search"- DetailSearch =
"Rakuten::Api::Travel.detail_search"- VacantSearch =
"Rakuten::Api::Travel.vacant_search"- AreaCode =
"Rakuten::Api::Travel.area_code"- KeywordSearch =
"Rakuten::Api::Travel.keyword_search"- ChainList =
"Rakuten::Api::Travel.chain_list"- Ranking =
"Rakuten::Api::Travel.ranking"
Class Method Summary collapse
-
.area_code(opts = {}) ⇒ Object
Travel Area Code API (version:2009-03-26).
-
.chain_list(opts = {}) ⇒ Object
Travel Chain List API (version:2009-05-12).
-
.detail_search(opts = {}) ⇒ Object
Travel Detail Search API (version:2009-09-09).
-
.keyword_search(opts = {}) ⇒ Object
Travel Keyword Search API (version:2009-10-20).
-
.ranking(opts = {}) ⇒ Object
Travel Ranking API (version:2009-06-25).
-
.search(opts = {}) ⇒ Object
Travel Search API (version:2009-10-20).
-
.vacant_search(opts = {}) ⇒ Object
Travel Vacant Search API (version:2009-10-20).
Class Method Details
.area_code(opts = {}) ⇒ Object
Travel Area Code API (version:2009-03-26)
42 43 44 45 46 47 |
# File 'lib/rakuten/api/travel.rb', line 42 def area_code(opts={}) opts[:version] = '2009-03-26' unless opts.key?(:version) opts[:operation] = 'GetAreaClass' 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 |
.chain_list(opts = {}) ⇒ Object
Travel Chain List API (version:2009-05-12)
58 59 60 61 62 63 |
# File 'lib/rakuten/api/travel.rb', line 58 def chain_list(opts={}) opts[:version] = '2009-05-12' unless opts.key?(:version) opts[:operation] = 'GetHotelChainList' 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 |
.detail_search(opts = {}) ⇒ Object
Travel Detail Search API (version:2009-09-09)
26 27 28 29 30 31 |
# File 'lib/rakuten/api/travel.rb', line 26 def detail_search(opts={}) opts[:version] = '2009-09-09' unless opts.key?(:version) opts[:operation] = 'HotelDetailSearch' 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 |
.keyword_search(opts = {}) ⇒ Object
Travel Keyword Search API (version:2009-10-20)
50 51 52 53 54 55 |
# File 'lib/rakuten/api/travel.rb', line 50 def keyword_search(opts={}) opts[:version] = '2009-10-20' unless opts.key?(:version) opts[:operation] = 'KeywordHotelSearch' 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 |
.ranking(opts = {}) ⇒ Object
Travel Ranking API (version:2009-06-25)
66 67 68 69 70 71 |
# File 'lib/rakuten/api/travel.rb', line 66 def ranking(opts={}) opts[:version] = '2009-06-25' unless opts.key?(:version) opts[:operation] = 'HotelRanking' 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
Travel Search API (version:2009-10-20)
18 19 20 21 22 23 |
# File 'lib/rakuten/api/travel.rb', line 18 def search(opts={}) opts[:version] = '2009-10-20' unless opts.key?(:version) opts[:operation] = 'SimpleHotelSearch' 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 |
.vacant_search(opts = {}) ⇒ Object
Travel Vacant Search API (version:2009-10-20)
34 35 36 37 38 39 |
# File 'lib/rakuten/api/travel.rb', line 34 def vacant_search(opts={}) opts[:version] = '2009-10-20' unless opts.key?(:version) opts[:operation] = 'VacantHotelSearch' 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 |