my_john_deere_api 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +32 -1
- data/lib/my_john_deere_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a102c3adce407338232eacc4660b0dd77cfa6c3de5df8b9b685128ddec54177
|
4
|
+
data.tar.gz: 89fa527b141905f0d338be9c1046877ebf11e4ce40bb6b60870a53f076e1cccf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a69fa01f798ab1f313d04cc1bae801a5034d1137f94af51c00b0a888ffc2a5c1049ba47b39682d4fbb1cb753bf9c94375ca647965680d748e6985be16f1d9d9c
|
7
|
+
data.tar.gz: 26a3b54145b35dfd48f167c69b85bb1349a41451b007d54cc8204c1d952eafd2ceb98d43dce4054974e0d88c6b76a466492b91fd8cc811ee37830060981e016a
|
data/README.md
CHANGED
@@ -123,6 +123,37 @@ Once you're connected, the client works like a simplified version of ActiveRecor
|
|
123
123
|
converted into objects to be easier to work with. Collections of things, like organizations, handle pagination
|
124
124
|
for you. Just iterate using `each`, `map`, etc, and new pages are fetched as needed.
|
125
125
|
|
126
|
+
This client is a work in progress. You can currently do the following things without resorting to API calls:
|
127
|
+
|
128
|
+
```
|
129
|
+
client
|
130
|
+
└── organizations
|
131
|
+
├── count
|
132
|
+
├── all
|
133
|
+
├── first
|
134
|
+
└── find(organization_id)
|
135
|
+
├── assets(attributes)
|
136
|
+
| ├── count
|
137
|
+
| ├── all
|
138
|
+
| ├── first
|
139
|
+
| ├── find(asset_id)
|
140
|
+
| | └── locations
|
141
|
+
| | ├── count
|
142
|
+
| | ├── all
|
143
|
+
| | ├── first
|
144
|
+
| | └── create(attributes)
|
145
|
+
| └── create(attributes)
|
146
|
+
└── fields
|
147
|
+
├── count
|
148
|
+
├── all
|
149
|
+
├── first
|
150
|
+
└── find(field_id)
|
151
|
+
└── flags
|
152
|
+
├── count
|
153
|
+
├── all
|
154
|
+
└── first
|
155
|
+
```
|
156
|
+
|
126
157
|
#### [Organizations](https://developer.deere.com/#!documentation&doc=myjohndeere%2Forganizations.htm)
|
127
158
|
|
128
159
|
Organization collections act like a list. In addition to all the methods included via Ruby's
|
@@ -156,7 +187,7 @@ organization.name
|
|
156
187
|
organization.type
|
157
188
|
# => 'customer'
|
158
189
|
|
159
|
-
organization.member
|
190
|
+
organization.member?
|
160
191
|
# => true
|
161
192
|
|
162
193
|
organization.links
|