source: bookmarks/trunk/lib/Bookmarks/Search.pm @ 104

Last change on this file since 104 was 88, checked in by peter, 9 years ago

Better separation of the model for searching and the web app controller/representation layer

  • renamed Bookmarks::get_bookmarks() to search()
  • Bookmarks::search() now returns a Bookmarks::Search object instead of a Bookmarks::List
  • search results now reside in the Bookmarks::Search class
File size: 259 bytes
Line 
1package Bookmarks::Search;
2
3use Moose;
4
5has query  => (is => 'ro');
6has tags   => (
7    is => 'ro',
8    default => sub { [] },
9);
10has limit  => (is => 'ro');
11has offset => (is => 'ro');
12
13has results => (is => 'rw', default => sub { [] });
14
15# module return
161;
Note: See TracBrowser for help on using the repository browser.