NAME

Business::UPS::Tracking::Role::Builder - Helper role

DESCRIPTION

This role provides methods that construct various objects (eg. Business::UPS::Tracking::Element::Address).

METHODS

build_address

 my $address = $self->build_address($xpath_expression);

Turns an address xml node into a Business::UPS::Tracking::Element::Address object.

build_code

 my $address = $self->build_code($xpath_expression);

Turns an address xml node into a Business::UPS::Tracking::Element::Address object.

build_weight

 my $weight = $self->build_weight($xpath_expression);

Turns an weight xml node into a Business::UPS::Tracking::Element::Weight object.

build_referencenumber

 my $weight = $self->build_referencenumber($xpath_expression);

Turns an weight xml node into a Business::UPS::Tracking::Element::ReferenceNumber object.