Ruby method to add "by" and "description" in the component list

I am writing a Ruby extension that creates components; mostly working but when I see my components in the SU list, I see “by” as "Unknown and “no description”. Can I set these from Ruby?


Thanks…

Partly at least:

For the definition description:
Sketchup::ComponentDefinition#description=()

For the definition name:
Sketchup::ComponentDefinition#name=()

For the definition attribution it may require you to do a manual operation. This is a security feature to prevent (or reduce) the automated “theft” of intellectual property.

You would need to first save out the definition to storage.
Then open it as a model.
Then open the Model Info window.
Switch to the Credits subpanel.
And click the Claim Credit button.

More information:

Many thanks Dan, so as you say, that’s partly automated. I will include the author in the description and that will have to do for now.