Try this. Notice the double colon vs. period.
value = OpenStudio::OptionalDouble.new(10000.0)
Try this. Notice the double colon :: vs. period.