myob-api 0.7 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/myob/api/models/base.rb +2 -2
- data/lib/myob/api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cda26bcb6e112f93c6c09d12d440fc18c5c9f09e
|
4
|
+
data.tar.gz: 0fac8887d4ffc6cbc1d9abfd406c6f7eeb320c31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10bb4f5ea9a7d69121bb4f4d491d8b5bfeaec85260209c5fa6cf753f85b516a71f561018c4261436610c449ae47feffa1eb2aaa1fb4bc8a118c9fcd29206513c
|
7
|
+
data.tar.gz: f0581a3a3f9797783ba5dc2b7a69e4dbe6f0b089fffd16cf75ba11bf031c43247600a67934cbe9410387263d99948fb2a7c2314ba3250e998c8dd4d7d76c3580
|
data/lib/myob/api/models/base.rb
CHANGED
@@ -31,13 +31,13 @@ module Myob
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def next_page(params = nil)
|
34
|
-
perform_request(@next_page_link
|
34
|
+
perform_request(@next_page_link)
|
35
35
|
end
|
36
36
|
|
37
37
|
def all_items(params = nil)
|
38
38
|
results = all(params)["Items"]
|
39
39
|
while next_page?
|
40
|
-
results += next_page
|
40
|
+
results += next_page["Items"] || []
|
41
41
|
end
|
42
42
|
results
|
43
43
|
end
|
data/lib/myob/api/version.rb
CHANGED