lib/lightspeed_restaurant.rb in lightspeed_restaurant-1.1.2 vs lib/lightspeed_restaurant.rb in lightspeed_restaurant-2.0.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
# Lightspeed Restaurant Ruby Bindings
# API spec at http://stating-integration.posios.com/PosServer/swagger-ui.html
require 'excon'
require 'json'
@@ -13,11 +15,11 @@
require 'lightspeed_restaurant/receipt'
require 'lightspeed_restaurant/company'
module LightspeedRestaurantClient
class << self
- attr_accessor :api_token, :base_uri
+ attr_accessor :api_token, :base_uri, :logger
def get(path, body = {}, query = {})
request(path, body, query).perform(method: :get)
end
@@ -34,9 +36,9 @@
end
private
def request(path, body, query)
- Request.new(@base_uri, path, @api_token, body, query)
+ Request.new(@base_uri, path, @api_token, body, query, @logger)
end
end
end