lib/soaspec/test_server/puppy_service.rb in soaspec-0.0.64 vs lib/soaspec/test_server/puppy_service.rb in soaspec-0.0.65

- old
+ new

@@ -1,10 +1,19 @@ module Soaspec module TestServer class PuppyService @data = {} + @current_id = 1 class << self attr_accessor :data + + def new_id + @data[@current_id] = {} + @data[@current_id][:id] = @current_id + @current_id += 1 + @current_id - 1 + end + end end end end