Method: Fitting::Storage::WhiteList#request_hash

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

#request_hash(request) ⇒ Object



74
75
76
77
78
79
80
# File 'lib/fitting/storage/white_list.rb', line 74

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