WSDisco...::Types(3)

πŸ“¦ version 1.38.6, in nixpkgs unstable

✨ WSDiscovery::Elements::Types πŸ’…

okay so real talk, bestie β€” this is the WSDiscovery::Elements::Types page from the WSDisco...::Types(3) manual, and it's honestly one of those tiny little pages that's giving "quiet luxury." it's a whole Perl class, and it's genuinely iconic in its simplicity. let's get into it 🫢


🌸 NAME 🌸

WSDiscovery::Elements::Types β€” that's the whole name, that's the whole vibe. she's a Perl data type class, periodt. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so what does this class actually do? she's a Perl data type class for the XML Schema defined element Types, and that element lives in the namespace http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01. that's it, that's the whole description, and honestly? no notes. she knows what she is. πŸ’…

like, literally, if you're working with WS-Discovery XML and you need the Types element modeled as a Perl object, this is your girl. the namespace URL above is the exact one, character for character, so don't go freestyling it, bestie β€” copy it exactly. πŸŽ€


πŸ’– METHODS πŸ’–

⭐ new

my $element = WSDiscovery::Elements::Types->new($data);

this is the constructor, bestie. you call new on the class, hand it some $data, and boom β€” you've got yourself an element object. main character energy fr fr. πŸ”₯

here's the data structure situation you can pass to new():

$some_value, # QNameListType

so yeah β€” $some_value, and the comment tells you it's a QNameListType. that's the whole shape of the data. no cap, that's it. 🌈


🧚 AUTHOR 🧚

this bad boy was Generated by SOAP::WSDL. not hand-written, not artisanal β€” machine-generated and still slaying. πŸ’œ


and that's the page! cute little sign-off for you: this one's perl v5.42.3, dated 1980-01-01 (yes really, that date is not a typo, bestie 😭), straight from the User Contributed Perl Documentation. go forth and instantiate responsibly πŸ“βœ¨

πŸ“¦ where this page comes from