class Soaspec::TestServer::PuppyService

Simulates ordering a new puppy. Used for testing REST storing, retrieving and updating data

Attributes

data[RW]

Public Class Methods

new_id() click to toggle source
# File lib/soaspec/test_server/puppy_service.rb, line 12
def new_id
  @data[@current_id] = {}
  @data[@current_id][:Id] = @current_id
  @current_id += 1
  @current_id - 1
end