Sha256: d8ee087c96605030a50f63abfcb7f428f5e3e953a808b99fe7ca6ee64e664d06

Contents?: true

Size: 439 Bytes

Versions: 42

Compression:

Stored size: 439 Bytes

Contents

module Soaspec
  module TestServer
    # Simulates ordering a new puppy. Used for testing REST storing, retrieving and updating data
    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

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
soaspec-0.2.8 lib/soaspec/test_server/puppy_service.rb
soaspec-0.2.7 lib/soaspec/test_server/puppy_service.rb
soaspec-0.2.5 lib/soaspec/test_server/puppy_service.rb
soaspec-0.2.4 lib/soaspec/test_server/puppy_service.rb
soaspec-0.2.3 lib/soaspec/test_server/puppy_service.rb
soaspec-0.2.2 lib/soaspec/test_server/puppy_service.rb
soaspec-0.2.1 lib/soaspec/test_server/puppy_service.rb
soaspec-0.2.0 lib/soaspec/test_server/puppy_service.rb
soaspec-0.1.18 lib/soaspec/test_server/puppy_service.rb
soaspec-0.1.17 lib/soaspec/test_server/puppy_service.rb
soaspec-0.1.16 lib/soaspec/test_server/puppy_service.rb
soaspec-0.1.15 lib/soaspec/test_server/puppy_service.rb
soaspec-0.1.14 lib/soaspec/test_server/puppy_service.rb
soaspec-0.1.13 lib/soaspec/test_server/puppy_service.rb
soaspec-0.1.12 lib/soaspec/test_server/puppy_service.rb
soaspec-0.1.11 lib/soaspec/test_server/puppy_service.rb
soaspec-0.1.10 lib/soaspec/test_server/puppy_service.rb
soaspec-0.1.9 lib/soaspec/test_server/puppy_service.rb
soaspec-0.1.8 lib/soaspec/test_server/puppy_service.rb
soaspec-0.1.7 lib/soaspec/test_server/puppy_service.rb