Sha256: d9257683f22c2a6e98ddbdd5672b4d6a7fbae58039eeee8ea8664530d9047da6

Contents?: true

Size: 307 Bytes

Versions: 6

Compression:

Stored size: 307 Bytes

Contents

require 'saorin/adapters/clients'

module Saorin
  class Client
    class << self
      def new(options = {}, &block)
        adapter = options.delete(:adapter) || :faraday
        adapter_class = Saorin::Adapters::Clients.guess adapter
        adapter_class.new options, &block
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
saorin-0.2.0 lib/saorin/client.rb
saorin-0.1.4 lib/saorin/client.rb
saorin-0.1.3 lib/saorin/client.rb
saorin-0.1.2 lib/saorin/client.rb
saorin-0.1.1 lib/saorin/client.rb
saorin-0.1.0 lib/saorin/client.rb