Removed :nodoc: directives, as they are not understood by YARD.
[arvados.git] / lib / google / api_client / discovery.rb
index 3f89b3688795a17b015a3877a3a349a837faf192..96627e16bf0a584a7fd23553b578f8a34dbcf4ec 100644 (file)
@@ -17,8 +17,8 @@ require 'addressable/uri'
 require 'addressable/template'
 require 'extlib/inflection'
 
-module Google #:nodoc:
-  class APIClient #:nodoc:
+module Google
+  class APIClient
     class ValidationError < StandardError
     end
 
@@ -168,8 +168,11 @@ module Google #:nodoc:
       end
 
       def uri_template
+        # TODO(bobaman) We shouldn't be calling #to_s here, this should be
+        # a join operation on a URI, but we have to treat these as Strings
+        # because of the way the discovery document provides the URIs.
         return @uri_template ||=
-          Addressable::Template.new(base + self.description['pathUrl'])
+          Addressable::Template.new(base.to_s + self.description['pathUrl'])
       end
 
       def normalize_parameters(parameters={})