class Elong::API::Hotel::Core

Elong Hotel Core API Class

Public Instance Methods

data() click to toggle source

The Hotel Data section

@return [Elong::API::Hotel::Data]

# File lib/elong/api/hotel/core.rb, line 25
def data
  @data ||= Elong::API::Hotel::Data.new(@client)
end
detail(params={}) click to toggle source

View hotel details data

@return [Elong::Response]

# File lib/elong/api/hotel/core.rb, line 18
def detail(params={})
  self.request(__method__, params)
end
incr() click to toggle source

The Hotel Incr section

@return [Elong::API::Hotel::Incr]

# File lib/elong/api/hotel/core.rb, line 39
def incr
  @incr ||= Elong::API::Hotel::Incr.new(@client)
end
list(params={}) click to toggle source

List hotel data for recent 90 days data. the result will be cacahed about 10 mins

@return [Elong::Response]

# File lib/elong/api/hotel/core.rb, line 11
def list(params={})
  self.request(__method__, params)
end
order() click to toggle source

The Hotel Order section

@return [Elong::API::Hotel::Order]

# File lib/elong/api/hotel/core.rb, line 32
def order
  @order ||= Elong::API::Hotel::Order.new(@client)
end