Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

Latest commit

 

History

History
23 lines (16 loc) · 514 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 514 Bytes

Twirp RPC Ruby Client Generator

Install

go get -u github.com/gaffneyc/protoc-gen-twirp_ruby

Usage

Using the Haberdasher example:

protoc --proto_path=$GOPATH/src:. --twirp_ruby_out=. --ruby_out=. path/to/service.proto
require "service_pb"
require "service_twirp"

client = Haberdasher::HaberdasherClient.new("http://localhost:8081")
puts client.make_hat(Haberdasher::Size.new(inches: 5)).inspect