insales_api 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/insales_api/resources/order.rb +13 -1
- data/lib/insales_api/version.rb +1 -1
- metadata +4 -4
@@ -1,3 +1,15 @@
|
|
1
1
|
module InsalesApi
|
2
|
-
class Order < Base
|
2
|
+
class Order < Base
|
3
|
+
def order_lines_attributes
|
4
|
+
@order_lines_attributes = []
|
5
|
+
order_lines.each do |order_line|
|
6
|
+
@order_lines_attributes << order_line.as_json['order_line']
|
7
|
+
end
|
8
|
+
@order_lines_attributes
|
9
|
+
end
|
10
|
+
|
11
|
+
def to_xml(options = {})
|
12
|
+
super(options.merge({:methods => :order_lines_attributes}))
|
13
|
+
end
|
14
|
+
end
|
3
15
|
end
|
data/lib/insales_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: insales_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- InSales
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-05-18 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: activeresource
|