WSDisco...latesTo(3)

πŸ“¦ version 1.38.6, in nixpkgs unstable

πŸ’… WSDisco...latesTo(3) β€” a whole manual page, bestie

okay so real talk, this is a page from the User Contributed Perl Documentation collection, and it's about a tiny little Perl class with a big name. The truncated title up top β€” WSDisco...latesTo(3) β€” is literally just WSDiscovery::Elements::RelatesTo(3) doing a little stretch-and-yawn. Come meet it πŸ’–


🌸 NAME 🌸

WSDiscovery::Elements::RelatesTo β€” and that's the whole name, no cap.

It's a Perl data type class. Yes, class. Yes, it has one job. Yes, it's still iconic.


✨ DESCRIPTION ✨

So this is the Perl data type class for <RelatesTo>, which is an XML Schema defined element. It lives in the namespace http://www.w3.org/2005/08/addressing β€” write it exactly like that, king, don't you dare typo it πŸ”₯

That's the vibe. That's the whole description. It's giving "I'm a wrapper around one XML element and I know it" πŸ’…


πŸŽ€ METHODS πŸŽ€

πŸ¦‹ new

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

Constructor, bestie! You call new, you hand it some $data, and boom β€” you got yourself an element object. Main character energy fr fr ✨

Here's the data structure that new() accepts β€” and like, it's exactly this, no extra fields, no surprise guests:

{ value => $some_value },

So it's a hashref with one key, value, and $some_value goes in there. That's the tea πŸ“


πŸ‘‘ AUTHOR πŸ‘‘

Generated by SOAP::WSDL 😀

Like, the code wrote itself (well, the code wrote this class), and honestly? Slay. We love a generator that does the homework.


✨ that's the whole page ✨

Cute little sign-off before you go: this gem is running on perl v5.42.3, and the date stamped on it is 1980-01-01 β€” yes, nineteen eighty, we're time traveling πŸ•°οΈπŸ’œ no notes, periodt.

πŸ“¦ where this page comes from