Sha256: af89ec490354e97c3fa5be90a7fed12b8b1d0c78b9b8faef72f1fc10d8be2473
Contents?: true
Size: 377 Bytes
Versions: 5
Compression:
Stored size: 377 Bytes
Contents
# encoding: ASCII-8BIT require 'AddMappingRegistry.rb' require 'AddServant.rb' class AddPortType def initialize() @sum = 0 end def add(request) if (request.value > 100) fault = AddFault.new("Value #{request.value} is too large", "Critical") raise fault end @sum += request.value return AddResponse.new(@sum) end end
Version data entries
5 entries across 5 versions & 1 rubygems