code: 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
docs: sets the site for the class in which this module is extended