Sha256: 5cb97e1d3586f727fbe37f077d2b972e36a3bf33cebc78c2d374537fbf3d0a0e
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
module TeamcityRuby module Resource def client TeamcityRuby end def locator(options) raise(ArgumentError, "the Locator must be a Hash") unless options.is_a? Hash options.map { |key, value| "#{key}:#{URI.escape(value)}" }.join end module InstanceMethods def client self.class.client end def ==(other) self.class == other.class && self.teamcity_id == other.teamcity_id end end def self.extended(base) base.send(:include, InstanceMethods) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
teamcity_ruby-0.0.1 | lib/teamcity_ruby/resource.rb |