class Dsj::Diningcity::Processor
Public Instance Methods
process_GetRestaurantById(seqid, iprot, oprot)
click to toggle source
# File lib/dsj_thrift/diningcity.rb, line 50 def process_GetRestaurantById(seqid, iprot, oprot) args = read_args(iprot, GetRestaurantById_args) result = GetRestaurantById_result.new() result.success = @handler.GetRestaurantById(args.id) write_result(result, oprot, 'GetRestaurantById', seqid) end
process_do_search(seqid, iprot, oprot)
click to toggle source
# File lib/dsj_thrift/diningcity.rb, line 57 def process_do_search(seqid, iprot, oprot) args = read_args(iprot, Do_search_args) result = Do_search_result.new() result.success = @handler.do_search(args.keyword, args.region, args.price_range, args.location, args.cuisines, args.extra, args.language) write_result(result, oprot, 'do_search', seqid) end