class TeamcityRestClient::Authentication

Public Class Methods

new(openuri_options) click to toggle source
# File lib/teamcity-rest-client.rb, line 102
def initialize openuri_options
        @openuri_options = openuri_options
end

Public Instance Methods

get(path, params = {}) click to toggle source
# File lib/teamcity-rest-client.rb, line 106
def get path, params = {}
  open(url(path, params), @openuri_options).read
end
query_string_for(params) click to toggle source
# File lib/teamcity-rest-client.rb, line 110
def query_string_for params
  pairs = []
  params.each_pair { |k,v| pairs << "#{k}=#{v}" }
  pairs.join("&")
end