Bing::Search::Source - Base class for Sources.


Bing-Search documentation Contained in the Bing-Search distribution.

Index


Code Index:

NAME

Top

Bing::Search::Source - Base class for Sources.

SYNOPSIS

Top

 my $source = Bing::Search::Source::Web->new();

 $search->add_source( $source );

DESCRIPTION

Top

For details on what specific sources exist, see the documentation for the source in question.

AUTHOR

Top

Dave Houston, dhouston@cpan.org, 2010

LICENSE

Top

This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.


Bing-Search documentation Contained in the Bing-Search distribution.

package Bing::Search::Source;
use Moose;

has 'params' => ( is => 'rw', isa => 'HashRef' );
has 'source_name' => ( is => 'rw', isa => 'Str', lazy_build => 1 );

sub build_request { 
   my $self = shift;
   my $params = $self->params;
   # anchor!  params should be a nice hashref now.
   return $params;
}

__PACKAGE__->meta->make_immutable;