Class: Crashbreak::RequestParser
- Inherits:
-
Object
- Object
- Crashbreak::RequestParser
- Defined in:
- lib/crashbreak/request_parser.rb
Instance Method Summary collapse
-
#initialize(request_data) ⇒ RequestParser
constructor
A new instance of RequestParser.
- #request_data {|request_method_sym, request_path, request_body, request_headers| ... } ⇒ Object
Constructor Details
#initialize(request_data) ⇒ RequestParser
Returns a new instance of RequestParser.
3 4 5 |
# File 'lib/crashbreak/request_parser.rb', line 3 def initialize(request_data) @request = request_data end |
Instance Method Details
#request_data {|request_method_sym, request_path, request_body, request_headers| ... } ⇒ Object
7 8 9 |
# File 'lib/crashbreak/request_parser.rb', line 7 def request_data yield(request_method_sym, request_path, request_body, request_headers) end |