Module: Conjur::HasId
- Included in:
- ActsAsAsset, Deputy
- Defined in:
- lib/conjur/has_id.rb
Overview
Included in classes for assets that derive their id from their urls.
Instance Method Summary collapse
-
#id ⇒ String
Get this assets id.
Instance Method Details
#id ⇒ String
Get this assets id. This is the unqualified Conjur id for the asset, and is derived from the asset's url.
39 40 41 |
# File 'lib/conjur/has_id.rb', line 39 def id URI.unescape self.url.split('/')[-1] end |