README.md in fauna-1.2 vs README.md in fauna-1.3
- old
+ new
@@ -87,16 +87,16 @@
All instances of fauna classes have built-in accessors for common
fields:
```ruby
Fauna::Client.context($fauna) do
- user = Fauna::Resource.create('users', constraints: "taran77")
+ user = Fauna::Resource.create('users', constraints: {"username" => "taran77"})
# fields
user.ref # => "users/123"
user.ts # => 2013-01-30 13:02:46 -0800
- user.deleted # => false
- user.constraints # => "taran77"
+ user.deleted? # => false
+ user.constraints # => {"username" => "taran77"}
# data and references
user.data # => {}
user.references # => {}