Sha256: 7a2085842f98e96c2af034ab98f4663c68362cdbb62a88c81fcb9047cbfb8e26

Contents?: true

Size: 259 Bytes

Versions: 15

Compression:

Stored size: 259 Bytes

Contents

module APIClientBase
  module Base
    module ClassMethods

      def new(opts={})
        client_class = self.const_get("Client")
        client_opts = self.configuration.current.merge(opts)
        client_class.new(client_opts)
      end

    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
api_client_base-1.11.0 lib/api_client_base/base/class_methods.rb
api_client_base-1.10.0 lib/api_client_base/base/class_methods.rb
api_client_base-1.9.0 lib/api_client_base/base/class_methods.rb
api_client_base-1.8.0 lib/api_client_base/base/class_methods.rb
api_client_base-1.7.0 lib/api_client_base/base/class_methods.rb
api_client_base-1.6.0 lib/api_client_base/base/class_methods.rb
api_client_base-1.5.0 lib/api_client_base/base/class_methods.rb
api_client_base-1.4.1 lib/api_client_base/base/class_methods.rb
api_client_base-1.4.0 lib/api_client_base/base/class_methods.rb
api_client_base-1.3.0 lib/api_client_base/base/class_methods.rb
api_client_base-1.2.0 lib/api_client_base/base/class_methods.rb
api_client_base-1.1.0 lib/api_client_base/base/class_methods.rb
api_client_base-1.0.0 lib/api_client_base/base/class_methods.rb
api_client_base-0.2.1 lib/api_client_base/base/class_methods.rb
api_client_base-0.2.0 lib/api_client_base/base/class_methods.rb