Module: Conjur::HasOwner

Includes:
HasAttributes
Included in:
ActsAsAsset
Defined in:
lib/conjur/has_owner.rb

Overview

Included in assets that have an owner.

Instance Method Summary collapse

Methods included from HasAttributes

#attributes, #invalidate, #refresh, #save, #to_json

Instance Method Details

#owneridString

Return the owner of this resource or asset.

The owner of a resource or an asset with an underlying resource is allowed to do anything to the resource, including granting permissions to other roles.

Permissions

You must have the "read" permission on the underlying resource to call this method.

Returns:

  • (String)

    the fully qualified role id of the asset's owner.



47
48
49
# File 'lib/conjur/has_owner.rb', line 47

def ownerid
  attributes['ownerid']
end

#useridString

Return the userid attribute. This is the id of the Conjur role that created this asset.

Permissions

You must have the "read" permission on the underlying resource to call this method.

Returns:

  • (String)

    the userid



33
34
35
# File 'lib/conjur/has_owner.rb', line 33

def userid
  attributes['userid']
end