README.md in rancher-api-0.5.2 vs README.md in rancher-api-0.6.0
- old
+ new
@@ -36,11 +36,12 @@
$ gem install rancher-api
## Rancher Version
Tested with:
-Rancher v1.1.0
+gem < 0.6.0 -> Rancher v1.1.0
+gem >= 0.6.0 -> Rancher v1.2.0
## Usage
Configure Rancher::Api first by providing url, access and secret keys:
@@ -89,10 +90,10 @@
Now, you're able to query entities like this:
```ruby
project = Rancher::Api::Project.all.to_a
-machine = Rancher::Api::Machine.find('1ph1')
+machine = Rancher::Api::Machine.find('1ph1', _project_id: project.id)
```
`rancher/api` gem uses ORM Her which hence inherently supports all of the features that Her has to offer. To get more details, review this page https://github.com/remiprev/her#fetching-data
Some of the example queries include: