lib/conjur/has_id.rb in conjur-api-2.1.0 vs lib/conjur/has_id.rb in conjur-api-2.1.1
- old
+ new
@@ -1,8 +1,7 @@
module Conjur
module HasId
def id
- require 'uri'
- URI.unescape URI.parse(self.url).path.split('/')[-1]
+ path_components[-1]
end
end
end
\ No newline at end of file