Sha256: acc71527593e0c304fc4b05ac0b1ad7dfb0c981e82c59e42dd5da13a93eeecbb

Contents?: true

Size: 586 Bytes

Versions: 15

Compression:

Stored size: 586 Bytes

Contents

require "uri"
require "restclient"
require "time"

require "bamboo-client/version"
require "bamboo-client/http"
require "bamboo-client/abstract"
require "bamboo-client/rest"
require "bamboo-client/remote"

require "pp" if $DEBUG

module Bamboo
  module Client
    class Error < StandardError; end

    def self.for(sym, url)
      case sym.to_sym
      when :rest
        Rest.new Http::Json.new(url)
      when :remote, :legacy
        Remote.new Http::Xml.new(url)
      else
        raise ArgumentError, "unknown client #{sym.inspect}"
      end
    end

  end # Client
end # Bamboo

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
bamboo-client-0.1.9 lib/bamboo-client.rb
bamboo-client-0.1.8 lib/bamboo-client.rb
bamboo-client-0.1.7 lib/bamboo-client.rb
bamboo-client-0.1.6 lib/bamboo-client.rb
bamboo-client-0.1.5 lib/bamboo-client.rb
bamboo-client-0.1.4 lib/bamboo-client.rb
bamboo-client-0.1.3 lib/bamboo-client.rb
bamboo-client-0.1.2 lib/bamboo-client.rb
bamboo-client-0.1.1 lib/bamboo-client.rb
bamboo-client-0.1.0 lib/bamboo-client.rb
bamboo-client-0.0.9 lib/bamboo-client.rb
bamboo-client-0.0.8 lib/bamboo-client.rb
bamboo-client-0.0.6 lib/bamboo-client.rb
bamboo-client-0.0.5 lib/bamboo-client.rb
bamboo-client-0.0.4 lib/bamboo-client.rb