Net::DVDProfiler::DVD - A simple object that represents a DVD on DVDProfiler.


Net-DVDProfiler documentation Contained in the Net-DVDProfiler distribution.

Index


Code Index:

NAME

Top

Net-DVDProfiler-DVD - A simple object that represents a DVD on DVDProfiler.

DESCRIPTION

Top

A simple object that represents a DVD on DVDProfiler. This object will probably be only used by the Net::DVDProfiler module. The most important aspect of this module is its accessors, which you will need.

SYNOPSIS

Top

    use Net::DVDProfiler::DVD;

    my $dvd = new Net::DVDProfiler::DVD(
        title => 'DVD Title',
        upc => 'UPC Symbol'
    );

    print $dvd->title() . "\n";

new
    my $dvd = new Net::DVDProfiler::DVD();

Instantiates an object with which to perform further requests. This method will probably not be used.

title
    $dvd->title();

Returns the title of the DVD.

upc
    $dvd->upc();

Returns the upc of the DVD.

AUTHOR

Top

<a href="http://ejohn.org/">John Resig</a> <jeresig@gmail.com>

DISCLAIMER

Top

This application utilitizes screen-scraping techniques, which are very fickle and susceptable to changes.

COPYRIGHT

Top


Net-DVDProfiler documentation Contained in the Net-DVDProfiler distribution.

package Net::DVDProfiler::DVD;

sub new {
  my $ref = shift;
  my $class = ref( $ref ) || $ref;

  my $self = bless {
    title => undef,
    upc => undef,
    @_
  }, $class;

  return $self;
}

sub title {
  return $_[0]->{title};
}

sub upc {
  return $_[0]->{upc};
}
1;

__END__