Class: Rakuten::Api::Travel

Inherits:
Object
  • Object
show all
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

Class Method Details

.area_code(opts = {}) ⇒ Object

Travel Area Code API (version:2013-10-24)



33
34
35
# File 'lib/rakuten/api/travel.rb', line 33

def area_code(opts={})
  Rakuten::Request.get("https://app.rakuten.co.jp/services/api/Travel/GetAreaClass/20131024", Rakuten::Api.merge(opts))
end

.chain_list(opts = {}) ⇒ Object

Travel Chain List API (version:2013-10-24)



43
44
45
# File 'lib/rakuten/api/travel.rb', line 43

def chain_list(opts={})
  Rakuten::Request.get("https://app.rakuten.co.jp/services/api/Travel/GetHotelChainList/20131024", Rakuten::Api.merge(opts))
end

.detail_search(opts = {}) ⇒ Object

Travel Detail Search API (version:2013-10-24)



23
24
25
# File 'lib/rakuten/api/travel.rb', line 23

def detail_search(opts={})
  Rakuten::Request.get("https://app.rakuten.co.jp/services/api/Travel/HotelDetailSearch/20131024", Rakuten::Api.merge(opts))
end

.keyword_search(opts = {}) ⇒ Object

Travel Keyword Search API (version:2013-10-24)



38
39
40
# File 'lib/rakuten/api/travel.rb', line 38

def keyword_search(opts={})
  Rakuten::Request.get("https://app.rakuten.co.jp/services/api/Travel/KeywordHotelSearch/20131024", Rakuten::Api.merge(opts))
end

.ranking(opts = {}) ⇒ Object

Travel Ranking API (version:2013-10-24)



48
49
50
# File 'lib/rakuten/api/travel.rb', line 48

def ranking(opts={})
  Rakuten::Request.get("https://app.rakuten.co.jp/services/api/Travel/HotelRanking/20131024", Rakuten::Api.merge(opts))
end

.search(opts = {}) ⇒ Object

Travel Search API (version:2013-10-24)



18
19
20
# File 'lib/rakuten/api/travel.rb', line 18

def search(opts={})
  Rakuten::Request.get("https://app.rakuten.co.jp/services/api/Travel/SimpleHotelSearch/20131024", Rakuten::Api.merge(opts))
end

.vacant_search(opts = {}) ⇒ Object

Travel Vacant Search API (version:2013-10-24)



28
29
30
# File 'lib/rakuten/api/travel.rb', line 28

def vacant_search(opts={})
  Rakuten::Request.get("https://app.rakuten.co.jp/services/api/Travel/VacantHotelSearch/20131024", Rakuten::Api.merge(opts))
end