firebase-ruby 是 Firebase 后端 API 的 Ruby 语言封装。
示例代码:
Firebase.base_uri = 'https://<your-firebase>.firebaseio.com/' 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"}'