chronogolf/lightspeed_restaurant

View on GitHub
lib/lightspeed_restaurant/operations/find.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module LightspeedRestaurantClient
  module Operations
    module Find
      def find(id, configuration = nil)
        response = JSON.parse(LightspeedRestaurantClient.get(default_resource_path + "/#{id}", {}, configuration))
        new(response)
      end
    end
  end
end