From 6a299602e37c2c7f279100bb94e62dd3067e3fcf Mon Sep 17 00:00:00 2001 From: Vincent Woo Date: Thu, 26 Mar 2015 17:28:04 -0700 Subject: [PATCH] Tweak README regarding server timestamps --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index abd94a2..cc31675 100755 --- a/README.md +++ b/README.md @@ -39,10 +39,13 @@ You can now pass custom query options to firebase: response = firebase.push("todos", :limit => 1) ``` -To populate a value with a Firebase server timestamp, you can pass in a key of ```Firebase::ServerValue::TIMESTAMP```: +To populate a value with a Firebase server timestamp, you can set `Firebase::ServerValue::TIMESTAMP` as a normal value. This is analogous to passing `Firebase.ServerValue.TIMESTAMP` in the [official JavaScript client](https://www.firebase.com/docs/web/api/servervalue/timestamp.html). ```ruby -response = firebase.push("todos", { :name => 'Pick the milk', :created => Firebase::ServerValue::TIMESTAMP }) +response = firebase.push("todos", { + :name => 'Pick the milk', + :created => Firebase::ServerValue::TIMESTAMP +}) ``` So far, supported methods are: