omnivore-io 0.0.4 → 0.0.5

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: 087e74842217789d55825dc471da9cfba5bf4255
4
- data.tar.gz: 53349f18d44f1c978b48f0320a7a8052e999033e
3
+ metadata.gz: 179ac90d612dd9ac2c9aa617deb070fdb5cccd7f
4
+ data.tar.gz: a9c1308015e69e48cfad712389ce9ea0f528100f
5
5
  SHA512:
6
- metadata.gz: a68fb733c4763107907552c48e7a88e715d522c8a867e9c83c007e2c7fc5a33d5e69f5d094e575f3a0962c714355471072f8a451d6e7fea1cda1a8cb470077bc
7
- data.tar.gz: e6b1b84f82262a6fb6a5921e4054370789443d3f296a3e8920d33a34056701ac50853e5131ae1262899f81c9aff64d2e6b42ea52eb9329664f40736fb1569b44
6
+ metadata.gz: 5d4673c8d0c2698d3f184e027e16b64daf7127f014182a8a06a4b1b9163f829157412029442b545ec33e535012645f65601d1149ea680d2ef4966173e85ce6df
7
+ data.tar.gz: 57c3992dafa72e51e7406ef305de2c12410f4b902b4ad1007291788acb983c9cd8bff9f631631b0c66924a08c2d32bf9663c3b40de6d93c54409de892262abff
@@ -11,6 +11,12 @@ module OmnivoreIO
11
11
  self.modifiers = (attributes['modifiers'] || []).map{|modifier_json| OmnivoreIO::Modifier.new(nil, modifier_json) }
12
12
  end
13
13
 
14
+ def as_json(options={})
15
+ json = super
16
+ json[:menu_item] = self.menu_item.as_json
17
+ json
18
+ end
19
+
14
20
  end
15
21
 
16
22
  class Ticket
@@ -46,6 +52,13 @@ module OmnivoreIO
46
52
  self.merge! self.client.open_ticket(self.location_id, payload)
47
53
  end
48
54
 
55
+ def as_json(options={})
56
+ json = super
57
+ json[:items] = self.items.map{ |item| item.as_json }
58
+ json[:order_type] = self.order_type.as_json
59
+ json
60
+ end
61
+
49
62
  end
50
63
 
51
64
  class API
@@ -1,5 +1,5 @@
1
1
  module OmnivoreIO
2
2
  class API
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zane Shannon