Sha256: aff589f0117ab60a2449751890725463a67b74ae396c26e854fc4b0a4af72efd

Contents?: true

Size: 269 Bytes

Versions: 1

Compression:

Stored size: 269 Bytes

Contents

require 'faraday'

module Services
  class Requester
    # @param [String] method: default get
    # @param [String] url: example: "http://example.com"
    # @return [String] response
    def request(method: :get, url:)
      Faraday.send(method, url)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kilya-0.0.7 lib/services/requester.rb