myjohndeere 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +7 -4
- data/lib/myjohndeere.rb +2 -0
- data/lib/myjohndeere/version.rb +1 -1
- data/spec/fixtures.json +82 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7094d45f88b7a1f3a229931b550d6687c5bd406e
|
4
|
+
data.tar.gz: 935658bdcc9929de086baec3ae083dab1c451afc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f93bfd9472e28278ebd2eea785f55500f67c63ccf1578974000052e311b5c060047b42c60324db52029c73344c1b85e3705c4e950fb9ea5e67c82ccf204a1473
|
7
|
+
data.tar.gz: e813bba2847e0f66a5385a7a8ff13ac636cdfae4f87a8e2a51435071105bf7c110b2e7cbe7068102b1c0c9da7ba20d07ad4435caacaca35035f50a0275d32a2c
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -69,11 +69,14 @@ Assuming you've created a MyJohnDeere::AccessToken using something from above, t
|
|
69
69
|
``` ruby
|
70
70
|
organizations = MyJohnDeere::Organization.list(access_token)
|
71
71
|
|
72
|
-
|
73
|
-
|
74
|
-
|
72
|
+
loop do
|
73
|
+
organizations.each do |organization|
|
74
|
+
puts organization.fields.data
|
75
|
+
end
|
75
76
|
|
76
|
-
organizations.has_more?
|
77
|
+
break if !organizations.has_more?
|
78
|
+
organizations.next_page!
|
79
|
+
end
|
77
80
|
|
78
81
|
```
|
79
82
|
|
data/lib/myjohndeere.rb
CHANGED
@@ -26,6 +26,8 @@ require 'myjohndeere/list_object'
|
|
26
26
|
require 'myjohndeere/single_resource'
|
27
27
|
require 'myjohndeere/organization_owned_resource'
|
28
28
|
require 'myjohndeere/api_support_item'
|
29
|
+
require 'myjohndeere/contribution_activation'
|
30
|
+
require 'myjohndeere/contribution_product'
|
29
31
|
|
30
32
|
# API Sub-classes
|
31
33
|
require 'myjohndeere/map_legend_item'
|
data/lib/myjohndeere/version.rb
CHANGED
data/spec/fixtures.json
CHANGED
@@ -1,4 +1,86 @@
|
|
1
1
|
{
|
2
|
+
"contribution_products" : {
|
3
|
+
"links":[
|
4
|
+
{
|
5
|
+
"rel":"self",
|
6
|
+
"uri":"https://sandboxapi.deere.com/platform/contributionDefinitions"
|
7
|
+
}
|
8
|
+
],
|
9
|
+
"total":1,
|
10
|
+
"values":[
|
11
|
+
{
|
12
|
+
"@type":"ContributionDefinition",
|
13
|
+
"actionDefinitions":[
|
14
|
+
{
|
15
|
+
"@type":"ActionDefinition",
|
16
|
+
"uri":"http://example.com/",
|
17
|
+
"title":"Title on the Link",
|
18
|
+
"actionType":"WINDOW",
|
19
|
+
"displayType":"BUTTON",
|
20
|
+
"displayLocation":"MAIN_DETAIL",
|
21
|
+
"masterData":"ORGANIZATION",
|
22
|
+
"actionIcon":"NO_ICON"
|
23
|
+
}
|
24
|
+
|
25
|
+
],
|
26
|
+
"id":"9da4ae59-37dd-4fb1-a89f-0f906a307da3",
|
27
|
+
"links":[
|
28
|
+
{
|
29
|
+
"@type":"Link",
|
30
|
+
"rel":"self",
|
31
|
+
"uri":"https://sandboxapi.deere.com/platform/contributionDefinitions/9da4ae59-37dd-4fb1-a89f-0f906a307da3"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"@type":"Link",
|
35
|
+
"rel":"contributionProduct",
|
36
|
+
"uri":"https://sandboxapi.deere.com/platform/contributionProducts/32902911-9f40-41f3-99eb-b0638ed188a9"
|
37
|
+
}
|
38
|
+
]
|
39
|
+
}
|
40
|
+
]
|
41
|
+
},
|
42
|
+
"contribution_product" : {
|
43
|
+
"@type": "ContributionProduct",
|
44
|
+
"marketPlaceName": "PRODUCT_NAME",
|
45
|
+
"marketPlaceDescription": "PRODUCT_DESCRITPION",
|
46
|
+
"marketPlaceLogo": "https://jd-us01-isg-prod-system.s3.amazonaws.com/b2b/branding/32902911-9f40-41f3-99eb-b0638ed185y7",
|
47
|
+
"defaultLocale": "en-us",
|
48
|
+
"currentStatus": "APPROVED",
|
49
|
+
"id": "9bd2876a-c423-4a2a-8c25-bff66dde76fe",
|
50
|
+
"links": [
|
51
|
+
{
|
52
|
+
"@type": "Link",
|
53
|
+
"rel": "self",
|
54
|
+
"uri": "https://sandboxapi.deere.com/platform/contributionProducts/9bd2876a-c423-4a2a-8c25-bff66dde76fe"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"@type":"Link",
|
58
|
+
"rel":"contributionDefinition",
|
59
|
+
"uri":" https://sandboxapi.deere.com/platform/contributionProducts/355678a3-e789-48db-9e90-81ae05da114c/contributionDefinitions"
|
60
|
+
}
|
61
|
+
]
|
62
|
+
},
|
63
|
+
"contribution_activation" : {
|
64
|
+
"@type": "ContributionActivation",
|
65
|
+
"activationStatus": "ACTIVATED",
|
66
|
+
"links": [
|
67
|
+
{
|
68
|
+
"@type": "Link",
|
69
|
+
"rel": "self",
|
70
|
+
"uri": "https://sandboxapi.deere.com/platform/contributionActivations/90d20db5-6bdd-466f-a0ec-17c6271a0a2a"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"@type": "Link",
|
74
|
+
"rel": "contributionProduct",
|
75
|
+
"uri": "https://sandboxapi.deere.com/platform/contributionProducts/9bd2876a-c423-4a2a-8c25-bff66dde76fe"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"@type": "Link",
|
79
|
+
"rel": "organization",
|
80
|
+
"uri": "https://sandboxapi.deere.com/platform/organizations/218665"
|
81
|
+
}
|
82
|
+
]
|
83
|
+
},
|
2
84
|
"file_resource" : {
|
3
85
|
"links": [
|
4
86
|
{
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myjohndeere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Susmarski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth
|