| Summary | Package variables | Synopsis | Description | General documentation | Methods |
| Summary | Top |
| Clair::Polisci::Speaker - An object representing a hansard speaker |
| Package variables | Top |
| No package variables defined. |
| Synopsis | Top |
my $speaker = Clair::Polisci::Speaker->new( |
| Description | Top |
| This is a Speaker object used to represent a generic speaker from a hansard. It is basically a container object with a source, an id and an equality relation. Two Speakers are equal if they come from the same source and have the same id. |
| Methods | Top |
| equals | No description | Code |
| new | Description | Code |
| new | code | next | Top |
|
| equals | description | prev | next | Top |
sub equals
{ my $self = shift;
my $other_speaker = shift;
return ($self->{source} eq $other_speaker->{source})
&& ($self->{id} eq $other_speaker->{id});} |
| new | description | prev | next | Top |
sub new
{ my $self = shift;
my %args = @_;
die "Speaker source must be defined" unless defined $args{source};
die "Speaker id must be defined" unless defined $args{id};
$self =\% args;
return bless($self);} |
| AUTHOR | Top |
| Tony Fader afader@umich.edu |