lightspeed_restaurant 0.1.4 → 0.1.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: d00ab91860aad728eef8944c2f1780820514231f
4
- data.tar.gz: 6b19986e065a65f05307b3605ab0b5b1fb5379d3
3
+ metadata.gz: b455bf08e0c2af217e66cec7d63bfe22e4a93eaa
4
+ data.tar.gz: 4c7a6b0dcba4b2c24936108b1ebe48ea82a4e670
5
5
  SHA512:
6
- metadata.gz: 692a5db8c82fdf2bcd5a0bd20d5f34f218982974d78860a2e7d9674fd8d21349fb6f97d735e6b8c1cb9613f77c0f5314a9faf52493a1aff837ed8a146244a843
7
- data.tar.gz: 385c4aff9674d1db52ddfcb4765a091211541b2f28a1bd7904392bd4a6528bb3b19514d13e1a05175648871bbe87532747b5ffb3855d0ead63e8dc3fa77a787c
6
+ metadata.gz: 5675d34001aee365992a75b83ad8b7020ca7b975db3f66bca1fa47aafbda5ee39bce3aa8c3a0448342f7ac221ea6a0059dd42d8bdff342b2e76ccaf192c1396f
7
+ data.tar.gz: 1d80cce1918cee6a38a9ddad29516a952f9359267f50cca6c1fa5e2c376c6b19e88de51cda4cfc7bed55db856390c09394475e6868abe1253bb50c6fc606a971
@@ -31,6 +31,8 @@ module LightspeedRestaurant
31
31
  request(path, body, query).perform(method: :delete)
32
32
  end
33
33
 
34
+ private
35
+
34
36
  def request(path, body, query)
35
37
  Request.new(@base_uri, path, @api_token, body, query)
36
38
  end
@@ -19,7 +19,6 @@ module LightspeedRestaurant
19
19
  def convert_to_obj(h)
20
20
  h.each do |key, value|
21
21
  self.class.send(:attr_accessor, key)
22
- value = ['Missing', 'N/A', ''].include?(value) ? nil : value
23
22
  instance_variable_set("@#{key}", value)
24
23
  convert_to_obj(value) if value.is_a? Hash
25
24
  end
@@ -1,3 +1,3 @@
1
1
  module LightspeedRestaurant
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lightspeed_restaurant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivier Buffon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-07 00:00:00.000000000 Z
11
+ date: 2016-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon