Class: RightDevelop::Testing::Server::MightApi::App::Playback
- Defined in:
- lib/right_develop/testing/servers/might_api/app/playback.rb
Constant Summary collapse
- STATE_FILE_NAME =
'playback_state.yml'
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
#config, #logger, #state_file_path
Instance Method Summary collapse
- #handle_request(env, verb, uri, headers, body) ⇒ Object
-
#initialize ⇒ Playback
constructor
A new instance of Playback.
Methods inherited from Base
#call, #find_route, #internal_server_error, #normalize_rack_response_headers, #proxy, #proxy_headers
Constructor Details
#initialize ⇒ Playback
Returns a new instance of Playback.
30 31 32 |
# File 'lib/right_develop/testing/servers/might_api/app/playback.rb', line 30 def initialize super(STATE_FILE_NAME) end |
Instance Method Details
#handle_request(env, verb, uri, headers, body) ⇒ Object
35 36 37 38 39 40 41 42 43 |
# File 'lib/right_develop/testing/servers/might_api/app/playback.rb', line 35 def handle_request(env, verb, uri, headers, body) proxy( ::RightDevelop::Testing::Client::Rest::Request::Playback, verb, uri, headers, body, config.throttle) end |