I am rails beginner working on a task to replace HTTParty with Faraday. So in codebase I call put/post/get based on the verb like so:
response = HTTParty.send(verb, url, http_options)
I am aware that Faraday provides an option to call them individually like so:
Faraday.put(url) do |req|
Can I somehow abstract it, to call based on the verb.
Please let me know, if I can answer any questions.