Dave Dribin > Palm-Zetetic-Strip-1.02 > Palm::Zetetic::Strip::Account

Download:
Palm-Zetetic-Strip-1.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 1.02   Source  

NAME ^

Palm::Zetetic::Strip::Account - An immutable account object

SYNOPSIS ^

  use Palm::Zetetic::Strip;

  # Create and load a new Palm::Zetetic::Strip object

  @accounts = $strip->get_accounts();
  $system = $accounts[0]->get_system();
  $username = $accounts[0]->get_username();
  $password = $accounts[0]->get_password();
  $system_id = $accouns[0]->get_system_id();
  $comment = $accounts[0]->get_comment();

DESCRIPTION ^

This is an immutable data object that represents an account. A Palm::Zetetic::Strip(3) object is a factory for account objects.

METHODS ^

get_system

  $system = $account->get_system();

Returns the system name. Note: this has nothing to do with the name of a Palm::Zetetic::Strip::System(3) object. This is what the user enters as a system name.

get_username

  $username = $account->get_username();

Returns the username.

get_password

  $password = $account->get_password();

Returns the password.

get_system_id

  $system_id = $account->get_system_id();

Returns the system ID. This can be used to lookup a Palm::Zetetic::Strip::System(3) object.

get_comment

  $comment = $account->get_comment();

Returns the comment.

SEE ALSO ^

Palm::Zetetic::Strip(3), Palm::Zetetic::Strip::System(3)

AUTHOR ^

Dave Dribin