NAME
WebService::UrbanDictionary::Term::Definition - Functions for retrieving data from WebService::UrbanDictionary::Term objects.
VERSION
version 2.002
SYNOPSIS
use WebService::UrbanDictionary;
my $ud = WebService::UrbanDictionary->new;
my $results = request('perl');
for my $each (@{ $results->definitions }) {
printf "Definition: %s\n(by %s)\n\n", $each->definition, $each->author;
}
DESCRIPTION
WebService::UrbanDictionary provides an object-oriented to UrbanDictionary's online JSON API.
Methods
defid
-
Returns the definition ID for the definition.
word
-
Returns the word queried.
-
Returns the author of the definition.
permalink
-
Returns a permalink (URL) to the definition.
definition
-
Returns the definition itself.
example
-
Returns the example used in the definition, if one exists.
thumbs_up
-
Returns the number of thumbs ups given to the definition.
thumbs_down
-
Returns the number of thumbs downs given to the definition.
current_vote
-
Returns the current vote for the definition, if it exists.
SEE ALSO
AUTHOR
William Woodruff <william@tuffbizz.com>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2014 by William Woodruff.
This is free software, licensed under:
The MIT (X11) License