Protocol::Yadis::Document::Service - Protocol::Yadis::Document service object
my $s = Protocol::Yadis::Document::Service->new; $s->attr(priority => 4); $s->elements( [ Protocol::Yadis::Document::Service::Element->new( name => 'URI', content => 'foo' attrs => [priority => 0] ), Protocol::Yadis::Document::Service::Element->new( name => 'URI', content => 'foo' attrs => [priority => 4] ), Protocol::Yadis::Document::Service::Element->new( name => 'Type', content => 'bar' ), Protocol::Yadis::Document::Service::Element->new( name => 'URI', content => 'baz' ) ] ); # <Service> # <Type>foo</Type> # <URI priority="0">foo</URI> # <URI priority="4">foo</URI> # <URI>bar</URI> # <URI>baz</URI> # </Service>
This is a service object for Protocol::Yadis::Document.
http_req_cb
new
Creates a new Protocol::Yadis::Document::Services instance.
element
Gets element by name.
Type
Shortcut for getting Type element.
URI
Shortcut for getting URI element.
elements
Gets/sets elements.
attrs
Gets/sets service attributes.
attr
Gets/sets service attribute.
to_string
String representation.
Viacheslav Tykhanovskyi, vti@cpan.org.
vti@cpan.org
Copyright (C) 2009, Viacheslav Tykhanovskyi.
This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.10.
To install Protocol::Yadis, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Protocol::Yadis
CPAN shell
perl -MCPAN -e shell install Protocol::Yadis
For more information on module installation, please visit the detailed CPAN module installation guide.