File Coverage

blib/lib/Poker/Robot/Login.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Poker::Robot::Login;
2 1     1   4 use Moo;
  1         2  
  1         6  
3              
4             =encoding utf8
5              
6             =head1 NAME
7              
8             Poker::Robot::Login - Simple class to represent a user. Used internally by Poker::Robot
9              
10             =head1 VERSION
11              
12             Version 0.01
13              
14             =cut
15              
16             our $VERSION = '0.01';
17              
18              
19             has 'login_id' => (
20             is => 'rw',
21             required => 1,
22             );
23              
24             has 'user_id' => (
25             is => 'rw',
26             predicate => 'has_user_id',
27             );
28              
29             has 'block' => (
30             is => 'rw',
31             isa => sub { die "Not a hash!" unless ref( $_[0] ) eq 'HASH' },
32             default => sub { return {} },
33             );
34              
35             has 'level' => (
36             is => 'rw',
37             );
38              
39             has 'bookmark' => ( is => 'rw', );
40              
41             has 'chips' => (
42             is => 'rw',
43             isa => sub { die "Not a hash!" unless ref( $_[0] ) eq 'HASH' },
44             default => sub { return {} },
45             );
46              
47             has 'username' => ( is => 'rw', );
48             has 'password' => ( is => 'rw', );
49             has 'email' => ( is => 'rw', );
50             has 'birthday' => ( is => 'rw', );
51             has 'reg_date' => ( is => 'rw', );
52             has 'last_visit' => ( is => 'rw', );
53             has 'handle' => ( is => 'rw', );
54             has 'remote_address' => ( is => 'rw', );
55              
56             =head1 AUTHOR
57              
58             Nathaniel Graham, C
59              
60             =head1 BUGS
61              
62             Please report any bugs or feature requests directly to C
63              
64             =head1 LICENSE AND COPYRIGHT
65              
66             Copyright 2016 Nathaniel Graham.
67              
68             This program is free software; you can redistribute it and/or modify it
69             under the terms of the MIT license.
70              
71             =cut
72              
73             1;
74