Function: secrets-get-attribute
secrets-get-attribute is a byte-compiled function defined in
secrets.el.gz.
Signature
(secrets-get-attribute COLLECTION ITEM ATTRIBUTE)
Documentation
Return the value of ATTRIBUTE of item labeled ITEM in COLLECTION.
If there are several items labeled ITEM, it is undefined which one is returned. If there is no such item, or the item doesn't own this attribute, return nil.
ITEM can also be an object path, which is used if contained in COLLECTION.
Source Code
;; Defined in /usr/src/emacs/lisp/net/secrets.el.gz
(defun secrets-get-attribute (collection item attribute)
"Return the value of ATTRIBUTE of item labeled ITEM in COLLECTION.
If there are several items labeled ITEM, it is undefined which
one is returned. If there is no such item, or the item doesn't
own this attribute, return nil.
ITEM can also be an object path, which is used if contained in COLLECTION."
(cdr (assoc attribute (secrets-get-attributes collection item))))