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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 179ac90d612dd9ac2c9aa617deb070fdb5cccd7f
4
- data.tar.gz: a9c1308015e69e48cfad712389ce9ea0f528100f
3
+ metadata.gz: 53536ceb8e0e7d81d34098878483b851b9d24740
4
+ data.tar.gz: 22cf9c690e822dc411fcef7dc87c33cfc264cf5f
5
5
  SHA512:
6
- metadata.gz: 5d4673c8d0c2698d3f184e027e16b64daf7127f014182a8a06a4b1b9163f829157412029442b545ec33e535012645f65601d1149ea680d2ef4966173e85ce6df
7
- data.tar.gz: 57c3992dafa72e51e7406ef305de2c12410f4b902b4ad1007291788acb983c9cd8bff9f631631b0c66924a08c2d32bf9663c3b40de6d93c54409de892262abff
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
- (attributes['_embedded']['items'] || []).each do |item_json|
38
- self.items << OmnivoreIO::TicketItem.new(item_json)
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!
@@ -1,5 +1,5 @@
1
1
  module OmnivoreIO
2
2
  class API
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnivore-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zane Shannon