class Dsj::Diningcity::Client
Public Instance Methods
GetRestaurantById(id)
click to toggle source
# File lib/dsj_thrift/diningcity.rb, line 15 def GetRestaurantById(id) send_GetRestaurantById(id) return recv_GetRestaurantById() end
do_search(keyword, region, price_range, location, cuisines, extra, language)
click to toggle source
# File lib/dsj_thrift/diningcity.rb, line 30 def do_search(keyword, region, price_range, location, cuisines, extra, language) send_do_search(keyword, region, price_range, location, cuisines, extra, language) return recv_do_search() end
recv_GetRestaurantById()
click to toggle source
# File lib/dsj_thrift/diningcity.rb, line 24 def recv_GetRestaurantById() result = receive_message(GetRestaurantById_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetRestaurantById failed: unknown result') end
recv_do_search()
click to toggle source
# File lib/dsj_thrift/diningcity.rb, line 39 def recv_do_search() result = receive_message(Do_search_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'do_search failed: unknown result') end
send_GetRestaurantById(id)
click to toggle source
# File lib/dsj_thrift/diningcity.rb, line 20 def send_GetRestaurantById(id) send_message('GetRestaurantById', GetRestaurantById_args, :id => id) end
send_do_search(keyword, region, price_range, location, cuisines, extra, language)
click to toggle source
# File lib/dsj_thrift/diningcity.rb, line 35 def send_do_search(keyword, region, price_range, location, cuisines, extra, language) send_message('do_search', Do_search_args, :keyword => keyword, :region => region, :price_range => price_range, :location => location, :cuisines => cuisines, :extra => extra, :language => language) end