Вячеслав Тихановский > Protocol-XMLRPC > Protocol::XMLRPC::ValueFactory

Download:
Protocol-XMLRPC-0.10.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Protocol::XMLRPC::ValueFactory - value objects factory

SYNOPSIS ^

    my $array    = Protocol::XMLRPC::ValueFactory->build([...]);
    my $struct   = Protocol::XMLRPC::ValueFactory->build({...});
    my $integer  = Protocol::XMLRPC::ValueFactory->build(1);
    my $double   = Protocol::XMLRPC::ValueFactory->build(1.2);
    my $datetime = Protocol::XMLRPC::ValueFactory->build('19980717T14:08:55');
    my $boolean  = Protocol::XMLRPC::ValueFactory->build(\1);
    my $string   = Protocol::XMLRPC::ValueFactory->build('foo');

DESCRIPTION ^

This is a value object factory. Used internally. In synopsis you can see what types can be guessed.

ATTRIBUTES ^

METHODS ^

build

Builds new value object. If no instance was provided tries to guess type.

syntax highlighting: