# Rubyfox::SFSObject Converts between SmartFox's SFSObjects and Ruby Hashes. ## Installation Add this line to your application's Gemfile: gem 'rubyfox-sfsobject' And then execute: $ bundle Or install it yourself as: $ gem install rubyfox-sfsobject ## Usage require 'rubyfox/sfsobject/bulk' sfs_object = Rubyfox::SFSObject::Bulk.to_sfs({ :hello => "world" }) # => SFSObject ready to use in SmartFox hash = Rubyfox::SFSObject::Bulk.to.hash(sfs_object) # => { :hello => "world" } You can extend Hash and SFSObject with method shortcuts: require 'rubyfox/sfsobject/extend' sfs_object = { :hello => "world" }.to_sfs # => SFSObject sfs_object.to_hash # { :hello => "world" } ## Caveats *Note* that all hash keys will be converted to symbols. ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request