LinkEmbedder::Link - Meta information for an URL
See LinkEmbedder.
LinkEmbedder::Link is a class representing an expanded URL.
$str = $self->author_name;
Might hold the name of the author of "url".
Might hold an URL to the author.
$int = $self->cache_age;
The suggested cache lifetime for this resource, in seconds.
$str = $self->description;
Description of the "url". Might be undef().
undef()
$hash_ref = $self->author_name;
undef() on success, hash-ref on error. Example:
{message => "Oops!", code => 500};
$int = $self->height;
The height of "html" in pixels. Might be undef.
undef
$str = $self->provider_name;
Name of the provider of "url".
Main URL to the provider's home page.
$array_ref = $self->provider_name;
Used to figure out which template to use to render "html". Example:
["LinkEmbedder::Link", "rich.html.ep];
$int = $self->thumbnail_height;
The height of the "thumbnail_url" in pixels. Might be undef.
$str = $self->thumbnail_url;
URL to the thumbnail which can be used in "html".
$int = $self->thumbnail_width;
The width of the "thumbnail_url" in pixels. Might be undef.
$str = $self->title;
Title/heading of the "url". Might be undef().
oEmbed type of URL: link, photo, rich or video.
$ua = $self->ua;
Holds a Mojo::UserAgent object.
$str = $self->url;
The resource to fetch.
$str = $self->version;
oEmbed version. Example: "1.0".
$int = $self->width;
The width in pixels. Might be undef.
$str = $self->html;
Returns the "url" as rich markup, if possible.
$self = $self->learn; $self = $self->learn(sub { my $self = shift; });
Used to learn about the "url".
Jan Henning Thorsen
LinkEmbedder
To install LinkEmbedder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LinkEmbedder
CPAN shell
perl -MCPAN -e shell install LinkEmbedder
For more information on module installation, please visit the detailed CPAN module installation guide.