Module: Conjur::HasId
- Included in:
- Deputy
- Defined in:
- lib/conjur/has_id.rb
Instance Method Summary collapse
Instance Method Details
#id ⇒ Object
27 28 29 |
# File 'lib/conjur/has_id.rb', line 27 def id URI.unescape self.url.split('/')[-1] end |
#to_json(options = {}) ⇒ Object
23 24 25 |
# File 'lib/conjur/has_id.rb', line 23 def to_json( = {}) { id: id } end |