title: How to switch base_uri with httparty
body: <p>I am trying to pass a parameter to a <code>login</code> method and I want to switch the base uri based on that parameter.</p>
  
  <p>Like so:</p>
  
  <pre><code>class Managementdb
    include HTTParty
  
    def self.login(game_name)
          case game_name
          when "game1"
              self.base_uri = "http://game1"
          when "game2"
              self.base_uri = "http://game2"
          when "game3"
              self.base_uri = "http://game3"
          end
  
      response = self.get("/login")
  
          if response.success?
        @authToken = response["authToken"]
      else
        # this just raises the net/http response that was raised
        raise response.response    
      end
    end
  
    ...
  </code></pre>
  
  <p>Base uri does not set when I call it from a method, how do I get that to work?</p>