README.md in parse-ruby-client-0.2.0 vs README.md in parse-ruby-client-0.3.0
- old
+ new
@@ -322,10 +322,10 @@
Dates are useful in combination with the built-in createdAt and updatedAt fields. For example, to retrieve objects created since a particular time, just encode a Date in a comparison query:
```ruby
game_score = Parse::Query.new("GameScore").tap do |q|
- g.greater_than("createdAt", Parse::Object.new(DateTime.now)) # query options explained in more detail later in this document
+ g.greater_than("createdAt", Parse::Date.new(DateTime.now)) # query options explained in more detail later in this document
end.get.first
```
`Parse::Date::new` can take a `DateTime`, iso `Hash`, or a `String` that can be parsed by `DateTime#parse` as the sole argument.