Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label alias method, for uniform access to the records representative value #111

Closed
wants to merge 1 commit into from

Conversation

marvinosswald
Copy link

new: label method returns representative string for a record, like ip for an A record

I want to access a "representative" value for any given record without knowing what type of record it is.

I hope you see the use in this too. I'm happy to change the method name label to anything you deem more suitable.

@freekmurze
Copy link
Member

Thanks for this, but I'm not merging it in to keep the package as simple as can be.

The Record class is macroable so you could dynamically add a label method to it.

@freekmurze freekmurze closed this Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants