Finance::Wesabe::Profile - Class to represent your wesabe.com profile


Finance-Wesabe documentation Contained in the Finance-Wesabe distribution.

Index


Code Index:

NAME

Top

Finance::Wesabe::Profile - Class to represent your wesabe.com profile

SYNOPSIS

Top

    my $profile = Finance::Wesabe::Profile->new(
        content => $c, parent => $p
    );

DESCRIPTION

Top

This modules provides access to your profile information.

ACCESSORS

Top

* content - Hashref of data from the response
* parent - Parent object with acces to the user agent

PROFILE INFORMATION

Top

* name
* username
* postal_code
* email
* joined - A DateTime object
* country

AUTHOR

Top

Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Top


Finance-Wesabe documentation Contained in the Finance-Wesabe distribution.
package Finance::Wesabe::Profile;

use Moose;
use Finance::Wesabe::Utils;

has content => ( is => 'ro', isa => 'HashRef' );

has parent => ( is => 'ro', isa => 'Object' );

__PACKAGE__->mk_simple_field( qw( username name postal-code email ) );
__PACKAGE__->mk_deep_field( qw( country ) );
__PACKAGE__->mk_simple_date_field( qw( joined ) );

no Moose;

__PACKAGE__->meta->make_immutable;

1;