Class: Elong::API::GHotel::Search

Inherits:
Base
  • Object
show all
Defined in:
lib/elong/api/ghotel/search.rb

Overview

Elong Global Hotel Search API Class

Instance Method Summary collapse

Methods inherited from Base

#buildAPI, #initialize, #request

Constructor Details

This class inherits a constructor from Elong::API::Base

Instance Method Details

#detail(params = {}) ⇒ Elong::Response

View hotel details data

Returns:



17
18
19
# File 'lib/elong/api/ghotel/search.rb', line 17

def detail(params={})
  self.request(__method__, params)
end

#list(params = {}) ⇒ Elong::Response

Search and list globalehotel data

Returns:



10
11
12
# File 'lib/elong/api/ghotel/search.rb', line 10

def list(params={})
  self.request(__method__, params)
end

#room(params = {}) ⇒ Elong::Response

Check hotel room status(type, available numbers)

Returns:



24
25
26
# File 'lib/elong/api/ghotel/search.rb', line 24

def room(params={})
  self.request(__method__, params)
end