Method: Firebase::Client#push

Defined in:
lib/firebase.rb

#push(path, data, query = {}) ⇒ Object

Writes the data, returns the key name of the data added

Firebase.push('users', { 'age' => 18}) => {"name":"-INOQPH-aV_psbk3ZXEX"}


50
51
52
# File 'lib/firebase.rb', line 50

def push(path, data, query={})
  process :post, path, data, query
end