lib/conjur/has_id.rb in conjur-api-4.4.1 vs lib/conjur/has_id.rb in conjur-api-4.6.0
- old
+ new
@@ -23,9 +23,9 @@
def to_json(options = {})
{ id: id }
end
def id
- path_components[2..-1].join('/')
+ URI.unescape self.url.split('/')[-1]
end
end
end
\ No newline at end of file