Module: RateLimitMockServer

Defined in:
lib/rate_limit_mock_server.rb,
lib/rate_limit_mock_server/server.rb,
lib/rate_limit_mock_server/counter.rb,
lib/rate_limit_mock_server/version.rb,
lib/rate_limit_mock_server/rate_limit_error.rb

Defined Under Namespace

Classes: Counter, RateLimitError, Server

Constant Summary collapse

VERSION =
'0.2.0'

Class Method Summary collapse

Class Method Details

.quit!Object



12
13
14
# File 'lib/rate_limit_mock_server.rb', line 12

def self.quit!
  Server.quit!
end

.start(port: nil) ⇒ Object



7
8
9
10
# File 'lib/rate_limit_mock_server.rb', line 7

def self.start(port: nil)
  Server.set :port, port if port
  Server.run!
end