#------------------------------------------------------------
# Copyright (C) 2009 RoyaltyShare, Inc.   All Rights Reserved
#------------------------------------------------------------
package BookPub::Matcher::Product::Book;

use strict;
use warnings;

use lib '/app/tools/common/lib';
use Common::Assert;
use RSApache::Message;

use lib '/app/tools/bookpub/lib';
use BookPub::DB::Item::Product;
use BookPub::DB::Item::ProductType;
use BookPub::Catalog::Book::WithAuthor;

use base 'BookPub::Catalog::Product::Book::WithFormat';

sub _initProperties {
    my ( $self, $props ) = @_;

    # Invoke the inherited method first.
    #
    $self->SUPER::_initProperties($props);

    $self->{Book} = BookPub::Catalog::Book::WithAuthor->new( bookID => $props->{book_id} );
}

1;
