File Coverage

blib/lib/WWW/Mixi/OO/Login.pm
Criterion Covered Total %
statement 9 13 69.2
branch n/a
condition n/a
subroutine 3 5 60.0
pod 2 2 100.0
total 14 20 70.0


line stmt bran cond sub pod time code
1             # -*- cperl -*-
2             # copyright (C) 2005 Topia . all rights reserved.
3             # This is free software; you can redistribute it and/or modify it
4             # under the same terms as Perl itself.
5             # $Id: Login.pm 96 2005-02-04 16:55:48Z topia $
6             # $URL: file:///usr/minetools/svnroot/mixi/trunk/WWW-Mixi-OO/lib/WWW/Mixi/OO/Login.pm $
7             package WWW::Mixi::OO::Login;
8 2     2   6092 use strict;
  2         5  
  2         82  
9 2     2   11 use warnings;
  2         5  
  2         63  
10 2     2   11 use base qw(WWW::Mixi::OO::Page);
  2         5  
  2         407  
11              
12             =head1 NAME
13              
14             WWW::Mixi::OO::Login - WWW::Mixi::OO's L class
15              
16             =head1 SYNOPSIS
17              
18             my $page = $mixi->page('login');
19             $page->do_login;
20              
21             =head1 DESCRIPTION
22              
23             login page handler
24              
25             =head1 METHODS
26              
27             =over 4
28              
29             =cut
30              
31             =item uri
32              
33             see parent class (L).
34              
35             =cut
36              
37 0     0 1   sub uri { shift->absolute_uri('login') }
38              
39             =item do_login
40              
41             $page->do_login;
42              
43             login to mixi.
44              
45             =cut
46              
47             sub do_login {
48 0     0 1   my $this = shift;
49              
50 0           my %form = (
51             email => $this->session->email,
52             password => $this->session->password,
53             next_url => $this->page('home')->uri,
54             );
55              
56 0           $this->post($this->uri, %form);
57             }
58              
59             1;
60              
61             __END__