Sha256: dc78970c88e46e16a0ee9b398d5f19ff2ef03a23acc27ac1e9c26bab932ce19c
Contents?: true
Size: 935 Bytes
Versions: 4
Compression:
Stored size: 935 Bytes
Contents
# Lightspeed Restaurant Ruby Bindings # API spec at http://staging-exact-integration.posios.com/PosServer/swagger-ui.html require 'excon' require 'json' require 'lightspeed_restaurant/version' require 'lightspeed_restaurant/request' require 'lightspeed_restaurant/customer' module LightspeedRestaurant class << self attr_accessor :api_token, :base_url end def self.get(path, body = {}, query = {}) request(path, body, query).perform(method: :get) end def self.post(path, body = {}, query = {}) request(path, body, query).perform(method: :post) end def self.put(path, body = {}, query = {}) request(path, body, query).perform(method: :put) end def self.delete(path, body = {}, query = {}) request(path, body, query).perform(method: :delete) end private def self.request(path, body, query) LightspeedRestaurant::Request.new(@base_url, path, @api_token, body, query) end end
Version data entries
4 entries across 4 versions & 1 rubygems