Bing::Search::Result::News - News results from Bing


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

Index


Code Index:

NAME

Top

Bing::Search::Result::News - News results from Bing

METHODS

Top

Snippet

A snippet from the news article

BreakingNews

A boolean indicating if the article is "breaking news"

Source

The name of the source, i.e., "The Seattle Times"

Url

A URI objecting representing the link to the full article.

Date

A DateTime object representing the date of the article.

Title

The title of the article.

"NewsCollection" and "NewsRelated"

These two sub-groups are currently unimplemented. Their data, if it exists, should remain accesible in the data method. See http://msdn.microsoft.com/en-us/library/dd250884.aspx for details. This will probably be added later, when I get around to it.

Unimplemented bits are:

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::Result::News;
use Moose;

extends 'Bing::Search::Result';
with 'Bing::Search::Role::Types::DateType';
with 'Bing::Search::Role::Types::UrlType';

with qw(
      Bing::Search::Role::Result::Snippet
      Bing::Search::Role::Result::BreakingNews
      Bing::Search::Role::Result::Source
      Bing::Search::Role::Result::Url
      Bing::Search::Role::Result::Date
      Bing::Search::Role::Result::Title
);

__PACKAGE__->meta->make_immutable;