Sha256: c5a644e5900acf39b5a39b5dd1499181a47d4f9be16c6196f6f6f0bddd581f3d

Contents?: true

Size: 145 Bytes

Versions: 9

Compression:

Stored size: 145 Bytes

Contents

module Conjur
  module HasId
    def to_json(options = {})
      { id: id }
    end
  
    def id
      path_components[-1]
    end    
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
conjur-api-2.4.0 lib/conjur/has_id.rb
conjur-api-2.3.1 lib/conjur/has_id.rb
conjur-api-2.2.3 lib/conjur/has_id.rb
conjur-api-2.2.2 lib/conjur/has_id.rb
conjur-api-2.2.1 lib/conjur/has_id.rb
conjur-api-2.1.8 lib/conjur/has_id.rb
conjur-api-2.1.7 lib/conjur/has_id.rb
conjur-api-2.1.6 lib/conjur/has_id.rb
conjur-api-2.1.5 lib/conjur/has_id.rb