README.md in esp_sdk-2.1.0 vs README.md in esp_sdk-2.2.0
- old
+ new
@@ -204,11 +204,11 @@
The Evident.io SDK returns an ESP::PaginatedCollection object that provides methods for paginating through the collection.
The methods with a `!` suffix update the object, methods without the `!` suffix return a new page object preserving the
original object.
```ruby
-espsdk:004:0> alerts = ESP::Alert.for_report(345)
+espsdk:004:0> alerts = ESP::Alert.where(report_id: 345)
espsdk:004:0> alerts.current_page_number # => "1"
espsdk:004:0> page2 = alerts.next_page
espsdk:004:0> alerts.current_page_number # => "1"
espsdk:004:0> page2.current_page_number # => "2"
espsdk:004:0> page2.previous_page!
@@ -277,19 +277,10 @@
```ruby
ESP::Signature.where(name_cont: 'dns')
#=> will return signatures `where name LIKE '%dns%'`
```
-### OR Conditions
-
-You can also combine predicates for OR queries:
-
-```ruby
-ESP::Signature.where(name_or_description_cont: 'dns')
-#=> will return signatures `where name LIKE '%dns%' or description LIKE '%dns%'`
-```
-
### Conditions on Relationships
The syntax for queries on an associated relationship is to just append the association name to the attribute:
```ruby
@@ -457,10 +448,10 @@
## Sorting
Lists can also be sorted by adding the `sorts` parameter with the field to sort by to the `filter` parameter.
```ruby
-ESP::Signature.where(name_cont: 'dns', sort: 'risk_level desc')
+ESP::Signature.where(name_cont: 'dns', sorts: 'risk_level desc')
#=> will return signatures `where name LIKE '%dns%'` sorted by `risk_level` in descending order.
```
Lists can be sorted by multiple fields by specifying an ordered array.