require 'ostruct'

module Wimdu
  module Webservice 
    class Configuration

      attr_accessor :default_search

      @@partner_configurations = OpenStruct.new

      def initialize
        self.default_search = 2
      end

      def partners
        @@partner_configurations
      end
      
    end

    @@config = Wimdu::Webservice::Configuration.new

    def self.config
      @@config
    end

    def self.configure
      yield @@config
    end

  end
end
