Skip to content

Commit

Permalink
added vote method
Browse files Browse the repository at this point in the history
  • Loading branch information
three18ti committed Jan 14, 2012
1 parent 043c5b0 commit bf82432
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/Reddit/lib/Reddit.pm
Expand Up @@ -51,6 +51,13 @@ has 'comment_api' => (
default => sub { $_[0]->api_url . 'comment' },
);

has 'vote_api' => (
is => 'ro',
isa => 'Str',
lazy => 1,
default => sub { $_[0]->api_url . 'vote' },
);

has 'api_type' => (
is => 'ro',
isa => 'Str',
Expand Down Expand Up @@ -267,6 +274,8 @@ sub vote {
uh => $self->modhash
}
);

return $response->content;
}

no Moose;
Expand Down

0 comments on commit bf82432

Please sign in to comment.