Mojolicious::Plugin::LinkEmbedder::Link - Base class for links
my $err = $link->error; $link = $link->error({message => "Some error"});
Get or set error. Default to undef on no error.
undef
Name of the person who created the content.
URL to "author_name".
Returns the part of the URL identifying the media. Default is empty string.
Example: "Twitter".
Example https://twitter.com.
Some title
Holds a Mojo::UserAgent object.
Holds a Mojo::URL object.
$bool = $self->is($str); $bool = $self->is('video'); $bool = $self->is('video-youtube');
Convertes $str using "camelize" in Mojo::Util and checks if $self is of that type:
$str
$self
$self->isa('Mojolicious::Plugin::LinkEmbedder::Link::' .Mojo::Util::camelize($_[1]));
$self->learn($c, $cb);
This method can be used to learn more information about the link. This class has no idea what to learn, so it simply calls the callback ($cb) with @cb_args.
$cb
@cb_args
Returns a pretty version of the "url". The default is to return a cloned version of "url".
$bytestream = $self->tag(a => href => "http://google.com", sub { "link });
Same as https://metacpan.org/pod/Mojolicious::Plugin::TagHelpers#tag.
Returns a link to the "url", with target "_blank".
Jan Henning Thorsen - jan.henning@thorsen.pm
jan.henning@thorsen.pm
To install Mojolicious::Plugin::LinkEmbedder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::LinkEmbedder
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::LinkEmbedder
For more information on module installation, please visit the detailed CPAN module installation guide.