Sha256: 33cf1c8df4fbf4d21da2921d64b45031da0dc81c36bf16f343c2cef021676199
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 KB
Contents
# firebase Ruby wrapper for the Firebase backend API. Changes are sent to all subscribed clients automatically, so you can update your clients **in realtime from the backend**. See a [video demo](https://vimeo.com/41494336?utm_source=internal&utm_medium=email&utm_content=cliptranscoded&utm_campaign=adminclip) of what's possible. ### Installation ``` gem install firebase ``` ### Usage ```ruby base_uri = 'https://<your-firebase>.firebaseio.com/' firebase = Firebase.new(base_uri) response = firebase.push("todos", { :name => 'Pick the milk', :priority => 1 }) response.success? # => true response.code # => 200 response.body # => { 'name' => "-INOQPH-aV_psbk3ZXEX" } response.raw_body # => '{"name":"-INOQPH-aV_psbk3ZXEX"}' ``` If you have a read-only namespace, set your secret key as follows: ```ruby firebase = Firebase.new(base_uri, secret_key) response = firebase.push("todos", { :name => 'Pick the milk', :priority => 1 }) ``` So far, supported methods are: ```ruby set(path, data) get(path) push(path, data) delete(path) update(path, data) ``` More features are coming soon. More information about Firebase and the Firebase API is available at the [official website](http://www.firebase.com/). ### Copyright Copyright (c) 2013 Oscar Del Ben. See LICENSE.txt for further details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
firebase-0.1.6 | README.md |