Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Basic Client - Ruby
#!/usr/bin/env ruby
require 'barrister'
trans = Barrister::HttpTransport.new("http://localhost:3000/v1/todos")
client = Barrister::Client.new(trans)
begin
result = client.TodoManager.createTodo({ 'title' => 'Call Mom', 'completed' => false })
puts result
rescue Barrister::RpcException => e
puts "err.code=#{e.code}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment