lib/soaspec/test_server/id_manager.rb in soaspec-0.2.8 vs lib/soaspec/test_server/id_manager.rb in soaspec-0.2.9
- old
+ new
@@ -3,11 +3,10 @@
# Handles returning ids dependent on a number of factors
# Made to demonstrate creating testing a list of ids
class IdManager
@developed = false
class << self
-
attr_accessor :developed
# @return Result depending on num, id and whether '@developed' is set
def result_for(num, id)
result = undeveloped_id(num, id) unless @developed
@@ -23,10 +22,9 @@
when '7', '5', '12' then 'false' if id == '64'
else
'true'
end
end
-
end
end
end
-end
\ No newline at end of file
+end