Sha256: 0e1af0061d8f525ce3d461b7b4ec6a7a7e06dee58cc8ad6ab40783775827f31e

Contents?: true

Size: 645 Bytes

Versions: 4

Compression:

Stored size: 645 Bytes

Contents

require 'lightspeed_restaurant/base'
require 'lightspeed_restaurant/operations/list'
require 'lightspeed_restaurant/operations/find'
require 'lightspeed_restaurant/operations/create'
require 'lightspeed_restaurant/operations/update'
require 'lightspeed_restaurant/operations/save'

module LightspeedRestaurant
  class Customer < LightspeedRestaurant::Base
    include Operations::Save
    extend Operations::Create
    extend Operations::Update
    extend Operations::Find
    extend Operations::List

    def self.resource_name
      'Customer'
    end

    def self.resource_path
      "/rest/core/#{resource_name.downcase}"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lightspeed_restaurant-0.3.0 lib/lightspeed_restaurant/customer.rb
lightspeed_restaurant-0.2.0 lib/lightspeed_restaurant/customer.rb
lightspeed_restaurant-0.1.5 lib/lightspeed_restaurant/customer.rb
lightspeed_restaurant-0.1.4 lib/lightspeed_restaurant/customer.rb