myob-api 0.2.3 → 0.2.4
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 +4 -0
- 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: dc85f2a59b39c750c23a913d0739ce3ef05ce5e2
|
4
|
+
data.tar.gz: cc360b81a85326596dac60143791e41885f2e0a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df62b282f58b7a1bfbc4eafe8fe7e9c376f7905f4a938cbb70751751c9b5bf6da66810e085a8ed7041ed5dfcdf307f808b4ff22115a2de5ba43c13deb2e8b2a8
|
7
|
+
data.tar.gz: 257049570514a2c3bf85a1990dcca4d772b247a8fca4685db4cad01e4df59683a1212907ef54267f9ede493a8dbebb90ab2d26a5b335f2e8bfec7030cb4ef088
|
data/lib/myob/api/models/base.rb
CHANGED
@@ -36,6 +36,10 @@ module Myob
|
|
36
36
|
new_record?(object) ? create(object) : update(object)
|
37
37
|
end
|
38
38
|
|
39
|
+
def destroy(object)
|
40
|
+
@client.connection.delete(self.url(object), :headers => @client.headers)
|
41
|
+
end
|
42
|
+
|
39
43
|
def url(object = nil)
|
40
44
|
if self.model_route == ''
|
41
45
|
"#{API_URL}"
|
data/lib/myob/api/version.rb
CHANGED