++ed by:
KEEDI

1 PAUSE user
1 non-PAUSE user.

Jan Henning Thorsen

NAME

LinkEmbedder::Link - Meta information for an URL

SYNOPSIS

See LinkEmbedder.

DESCRIPTION

LinkEmbedder::Link is a class representing an expanded URL.

ATTRIBUTES

author_name

  $str = $self->author_name;

Might hold the name of the author of "url".

author_url

  $str = $self->author_name;

Might hold an URL to the author.

cache_age

  $int = $self->cache_age;

The suggested cache lifetime for this resource, in seconds.

description

  $str = $self->description;

Description of the "url". Might be undef().

error

  $hash_ref = $self->author_name;

undef() on success, hash-ref on error. Example:

  {message => "Oops!", code => 500};

height

  $int = $self->height;

The height of "html" in pixels. Might be undef.

provider_name

  $str = $self->provider_name;

Name of the provider of "url".

provider_url

  $str = $self->provider_name;

Main URL to the provider's home page.

template

  $array_ref = $self->provider_name;

Used to figure out which template to use to render "html". Example:

  ["LinkEmbedder::Link", "rich.html.ep];

thumbnail_height

  $int = $self->thumbnail_height;

The height of the "thumbnail_url" in pixels. Might be undef.

thumbnail_url

  $str = $self->thumbnail_url;

URL to the thumbnail which can be used in "html".

thumbnail_width

  $int = $self->thumbnail_width;

The width of the "thumbnail_url" in pixels. Might be undef.

title

  $str = $self->title;

Title/heading of the "url". Might be undef().

type

  $str = $self->title;

oEmbed type of URL: link, photo, rich or video.

ua

  $ua = $self->ua;

Holds a Mojo::UserAgent object.

url

  $str = $self->url;

The resource to fetch.

version

  $str = $self->version;

oEmbed version. Example: "1.0".

width

  $int = $self->width;

The width in pixels. Might be undef.

METHODS

html

  $str = $self->html;

Returns the "url" as rich markup, if possible.

learn_p

  $promise = $self->learn_p->then(sub { my $self = shift; });

Used to learn about the "url".

AUTHOR

Jan Henning Thorsen

SEE ALSO

LinkEmbedder