omnivore-io 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omnivore-io/api/ticket.rb +5 -3
- data/lib/omnivore-io/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: 53536ceb8e0e7d81d34098878483b851b9d24740
|
4
|
+
data.tar.gz: 22cf9c690e822dc411fcef7dc87c33cfc264cf5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee014cf463dceb93a026bf0fbb07cc22aa01f33e9ce41f32689dffdc844df1b63fb491ee360a4c79b38823fafcdf95e6d96f68b46be49af0e1f727379debe7e0
|
7
|
+
data.tar.gz: fcf76913962bd569569d22d7fb3b61fd37656edbf0ffa9c43802d516046b3b698cead81b1d5a04db0f10ca446570bf1509d6a837067191b1794a370562b7e120
|
@@ -34,10 +34,12 @@ module OmnivoreIO
|
|
34
34
|
self.send "#{key}=".to_sym, value
|
35
35
|
end
|
36
36
|
end
|
37
|
-
|
38
|
-
|
37
|
+
if embedded = attributes['_embedded']
|
38
|
+
(embedded['items'] || []).each do |item_json|
|
39
|
+
self.items << OmnivoreIO::TicketItem.new(item_json)
|
40
|
+
end
|
41
|
+
self.order_type = OmnivoreIO::OrderType.new(nil, embedded['order_type'])
|
39
42
|
end
|
40
|
-
self.order_type = OmnivoreIO::OrderType.new(nil, attributes['_embedded']['order_type'])
|
41
43
|
end
|
42
44
|
|
43
45
|
def open!
|