Class: Crashbreak::RequestParser

Inherits:
Object
  • Object
show all
Defined in:
lib/crashbreak/request_parser.rb

Instance Method Summary collapse

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

Yields:

  • (request_method_sym, request_path, request_body, request_headers)


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