Sha256: 1e5463d4f8643b15730af5ea89f1d8cc434cad63b1d64cab53e5307e1be6bb41

Contents?: true

Size: 341 Bytes

Versions: 5

Compression:

Stored size: 341 Bytes

Contents

require 'saorin/registerable'

module Saorin
  module Client
    include Registerable
    self.load_path = 'saorin/client'

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
saorin-0.4.1 lib/saorin/client.rb
saorin-0.4.0 lib/saorin/client.rb
saorin-0.3.2 lib/saorin/client.rb
saorin-0.3.1 lib/saorin/client.rb
saorin-0.3.0 lib/saorin/client.rb