Return value from action

Hi everyone,

i would like to return a value from a custom resource action, similar to what is done in the ssl_certificate cookbook:

cert = ssl_certificate 'webapp1' do
  namespace node['webapp1']
end

But i can't find any documentation on how to do this, can someone give me a hint?