module TeamCity::Client::Common

Defines some common methods shared across the other teamcity api modules

Private Instance Methods

assert_options(options) click to toggle source
# File lib/teamcity/client/common.rb, line 9
def assert_options(options)
  !options[:id] and raise ArgumentError, "Must provide an id", caller
end
locator(options={}) click to toggle source

Take a list of locators to search on multiple criterias

# File lib/teamcity/client/common.rb, line 15
def locator(options={})
  options.inject([]) do |locators, locator|
    key, value = locator
    locators << "#{key}:#{value}"
  end.join(',')
end