EasyPost/easypost-ruby — pull request #9 by mbeale (2013-10-18 17:22:07+00:00)
Title: added receive method

working example

require 'easypost'
require 'sinatra'
require 'json'

post '/webhook' do
e = EasyPost::Event.new
e.receive(JSON.parse(request.body.string))
e.result.to_s
end