Class: Onyx::FakeServer
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Onyx::FakeServer
- Defined in:
- lib/onyx_client/fake_server.rb
Constant Summary collapse
- @@storage =
{}
Class Method Summary collapse
Class Method Details
.start ⇒ Object
36 37 38 39 40 41 |
# File 'lib/onyx_client/fake_server.rb', line 36 def self.start @thread = Thread.new do run! end sleep(1) end |
.stop ⇒ Object
43 44 45 |
# File 'lib/onyx_client/fake_server.rb', line 43 def self.stop @thread.kill end |