Sha256: 5304c8caf9c66de4b84c6792a18f20b88cca05d2f73b264da8efd10c2efbda21
Contents?: true
Size: 459 Bytes
Versions: 6
Compression:
Stored size: 459 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
6 entries across 6 versions & 1 rubygems