Sha256: 0c2b5741b7ac59c77f671e7dc943e1e7ae761f759ad1a3685a0cd8d12d221e4a
Contents?: true
Size: 458 Bytes
Versions: 5
Compression:
Stored size: 458 Bytes
Contents
require 'grpc' require 'route_guide' class DirectionsService < RouteGuide::DirectionsService::Service def direct_it(direction_req, _unused_call) puts "Received direction request for #{direction_req}" RouteGuide::DirectionsResponse.new( directions: response.direction, approximate_time_of_travel_in_hrs: response.approximate_time_of_travel_in_hrs, approximate_distance_in_kms: response.approximate_distance_in_kms ) end end
Version data entries
5 entries across 5 versions & 1 rubygems