A Ruby interface to the EventLog API.
Add this line to your application's Gemfile:
gem 'event-log-sdk', git: 'git://github.com/yuanping/event-log-sdk.git'
And then execute:
$ bundle
client = EventLog::Client.new host: 'http://lvh.me:3000', token: '1922:RkPYCtz7v9p-KHh7LCxv', version: 'v1' event = { model_name: 'Order', model_id: '1', category: 'CRM', content: 'price 20=>30', event: 'update', operator: 'yp', operator_id: 'yuanping@fishtrip.cn', link: 'http://fishtrip.cn' } client.create_event_log event.to_json #=> success response code: 201 client.event_logs #=> [{model_name: 'Order', model_id: '1', content: 'update price: 20 => 30', ...}, {...}]
- Fork it ( https://github.com/yuanping/event-log-sdk/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request