client files required for communication to snip-service
Add this line to your application's Gemfile:
gem 'poirot-interface'
Proto format: proto3
snipped_url = Snip::UrlSnipService.snip_it(Snip::SnipRequest.new(url: url)).url
After changing/adding proto files, use following command to generate ruby files:
grpc_tools_ruby_protoc -Iproto --ruby_out=lib/proto --grpc_out=lib/proto proto/snip.proto