Chatbox
Simple messaging system.
Installation
Add this line to your application's Gemfile:
gem 'chatbox'
And then execute:
$ bundle
Or install it yourself as:
$ gem install chatbox
Usage
Person = Struct.new :chatbox_id
austin = Person.new 1
rachel = Person.new 2
Chatbox. from: austin, to: rachel, body: 'Hello! How are you?'
rachels_inbox = Chatbox.fetch_inbox_for rachel
= rachels_inbox[0]
.body # 'Hello! How are you?'
austins_outbox = Chatbox.fetch_outbox_for austin
= austins_outbox[0]
.body # 'Hello! How are you?'
Contributing
- Fork it ( https://github.com/[my-github-username]/chatbox/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