has shows =>
is => 'ro',
lazy => 1,
- default => \&build_shows,
+ builder => '_build_shows',
handles => {
find_show => 'first',
has_shows => 'size',
};
-sub build_shows {
+sub _build_shows {
my $self = shift;
$self->get_response( $self->url_shows )->dom->find('table.forum_header_border tr[name="hover"]')->map(sub {
use Moose::Role;
use Mojo::UserAgent;
+# ABSTRACT: User agent for EZTV scrapper.
+
has ua => ( is => 'ro', lazy => 1, default => sub { $EZTV::Global::UA || ($EZTV::Global::UA = Mojo::UserAgent->new) } );
+=method get_response
+=cut
sub get_response {
my ($self, $url) = (shift, shift);