Skip to content

Instantly share code, notes, and snippets.

@laser laser/client.rb
Created May 12, 2014

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