Method: Fitting::Storage::WhiteList#request_hash

Defined in:
lib/fitting/storage/white_list.rb

#request_hash(request) ⇒ Object



78
79
80
81
82
83
84
# File 'lib/fitting/storage/white_list.rb', line 78

def request_hash(request)
  array = request.split(' ')
  {
    method: array[0],
    path: Tomograph::Path.new(array[1]).to_s
  }
end