Module: Conjur::HasId
- Included in:
- Host
- Defined in:
- lib/conjur/has_id.rb
Instance Method Summary collapse
Instance Method Details
#id ⇒ Object
7 8 9 |
# File 'lib/conjur/has_id.rb', line 7 def id path_components[2..-1].join('/') end |
#to_json(options = {}) ⇒ Object
3 4 5 |
# File 'lib/conjur/has_id.rb', line 3 def to_json( = {}) { id: id } end |