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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 692489bf9f29cb98dd207b61e38c75845b48f582
4
- data.tar.gz: 1be695ad3f879ca03ae664c2fe467bc0a4759df1
3
+ metadata.gz: dc85f2a59b39c750c23a913d0739ce3ef05ce5e2
4
+ data.tar.gz: cc360b81a85326596dac60143791e41885f2e0a2
5
5
  SHA512:
6
- metadata.gz: d7561d3a609251917bd433a9d30abd0d5c8707ccb8c5dec236e243146e6e508960870ae89bdd3dd62aa0e6e639cacf2469a001fa5630cabe01765b3ee5f11f4c
7
- data.tar.gz: be4644cede667f7276f7a0e2105f62a5c649e7398fcd86392d0c259d00d0710d6297c8922491fcba3f9ce8009ba019c5593f5d9bf0f9af014ff76b5962ef8cc7
6
+ metadata.gz: df62b282f58b7a1bfbc4eafe8fe7e9c376f7905f4a938cbb70751751c9b5bf6da66810e085a8ed7041ed5dfcdf307f808b4ff22115a2de5ba43c13deb2e8b2a8
7
+ data.tar.gz: 257049570514a2c3bf85a1990dcca4d772b247a8fca4685db4cad01e4df59683a1212907ef54267f9ede493a8dbebb90ab2d26a5b335f2e8bfec7030cb4ef088
@@ -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}"
@@ -1,5 +1,5 @@
1
1
  module Myob
2
2
  module Api
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myob-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Lumley