quickeebooks 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Quickeebooks
2
2
 
3
- VERSION = "0.1.13"
3
+ VERSION = "0.1.14"
4
4
 
5
5
  end
@@ -11,6 +11,11 @@ module Quickeebooks
11
11
  fetch_collection(Quickeebooks::Windows::Model::Item, nil, filters, page, per_page, sort, options)
12
12
  end
13
13
 
14
+ def fetch_by_id(id, idDomain = 'QB', options = {})
15
+ url = "#{url_for_resource(Quickeebooks::Windows::Model::Item::REST_RESOURCE)}/#{id}"
16
+ fetch_object(Quickeebooks::Windows::Model::Item, url, {:idDomain => idDomain})
17
+ end
18
+
14
19
  def create(item)
15
20
  # XML is a wrapped 'object' where the type is specified as an attribute
16
21
  # <Object xsi:type="Item">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickeebooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-22 00:00:00.000000000 Z
12
+ date: 2013-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: roxml