lib/mingle4r/common_class_methods.rb
def site=(site)
      if site != self.site
        @site = site
        uri = URI.parse(site)
        @user = URI.decode(uri.user) if(uri.user)
        @password = URI.decode(uri.password) if(uri.password)
        @resource_class = self.send(:create_resource_class)
      end
      @site
    end
def site=(site)
      if site != self.site
        @site = site
        uri = URI.parse(site)
        @user = URI.decode(uri.user) if(uri.user)
        @password = URI.decode(uri.password) if(uri.password)
        @resource_class = self.send(:create_resource_class)
      end
      @site
    end
def site = ( site ) if site != self . site @site = site uri = URI . parse ( site ) @user = URI . decode ( uri . user ) if ( uri . user ) @password = URI . decode ( uri . password ) if ( uri . password ) @resource_class = self . send ( :create_resource_class ) end @site end
sets the site for the class in which this module is extended
sets the site for the class in which this module is extended