Sha256: 56b86a050771b18be316f7318caa47136ce1266e8fbc72451ebd329a2a1457de

Contents?: true

Size: 304 Bytes

Versions: 9

Compression:

Stored size: 304 Bytes

Contents

module KrakenClient
  module Requests
    class Get < Base

      def call(url, params, *)
        super

        HTTParty.get(url, query: parsed_params(params))
      end

      private

      def parsed_params(params)
        params.is_a?(Hash) ? params : { pair: params }
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kraken_client-1.3.0 lib/kraken_client/requests/get.rb
kraken_client-1.2.1 lib/kraken_client/requests/get.rb
kraken_client-1.2 lib/kraken_client/requests/get.rb
kraken_client-1.1.5 lib/kraken_client/requests/get.rb
kraken_client-1.1.4 lib/kraken_client/requests/get.rb
kraken_client-1.1.3 lib/kraken_client/requests/get.rb
kraken_client-1.1.2 lib/kraken_client/requests/get.rb
kraken_client-1.1.1 lib/kraken_client/requests/get.rb
kraken_client-1.1.0 lib/kraken_client/requests/get.rb