.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Net::Amazon::Property::Book 3pm" .TH Net::Amazon::Property::Book 3pm "2021-01-02" "perl v5.32.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Net::Amazon::Property::Book \- Class for books on amazon.com .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use Net::Amazon; \& \& # ... \& \& if($resp\->is_success()) { \& for my $prop ($resp\->properties) { \& print join("/", $prop\->authors()), " ", \& $prop\->title(), " ", \& $prop\->publisher(), " ", \& $prop\->year(), "\en"; \& } .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\f(CW\*(C`Net::Amazon::Property::Book\*(C'\fR is derived from \&\f(CW\*(C`Net::Amazon::Property\*(C'\fR and on top of the all-purpose methods the base class provides, it offers specialized accessors for book parameters. .SS "\s-1METHODS\s0" .IX Subsection "METHODS" .IP "\fBauthors()\fR" 4 .IX Item "authors()" Returns a list of the book's authors. There's also a \f(CW\*(C`author()\*(C'\fR method which just returns the \fIfirst\fR author. .IP "\fBpublisher()\fR" 4 .IX Item "publisher()" Returns the book's publishing company as a string. .IP "\fBtitle()\fR" 4 .IX Item "title()" Returns the book's title as a string. .IP "\fBisbn()\fR" 4 .IX Item "isbn()" Returns the book's \s-1ISBN\s0 number. .IP "\fBedition()\fR" 4 .IX Item "edition()" Returns the book's edition. .IP "\fBean()\fR" 4 .IX Item "ean()" Returns the book's \s-1EAN\s0 number. .IP "\fBnumpages()\fR" 4 .IX Item "numpages()" Returns the number of pages. .IP "\fBdewey_decimal()\fR" 4 .IX Item "dewey_decimal()" Returns the Dewey decimal number, this is for non-fiction only. .Sp This method is deprecated (2011\-10\-28) as it does not appear to be returned by Amazon any more. .IP "\fBpublication_date()\fR" 4 .IX Item "publication_date()" Returns the publication date. .IP "\fBReleaseDate()\fR" 4 .IX Item "ReleaseDate()" Returns the release date. .Sp For historical reasons, this method used to return the publication date. However, as of version Net::Amazon 0.44 the release date is returned, and a separate \*(L"\fBpublication_date()\fR\*(R" method is available. .ie n .IP "new(xmlref => $xmlref)" 4 .el .IP "new(xmlref => \f(CW$xmlref\fR)" 4 .IX Item "new(xmlref => $xmlref)" Initializes an object by passing a hash of hashes structure containing the \s-1XML\s0 data returned from the service. Usually, this is just used by \&\f(CW\*(C`Net::Amazon\*(C'\fR internally to initialize objects for on backcoming data. .PP Check out Net::Amazon::Property for all-purpose accessors, like \&\f(CW\*(C`year\*(C'\fR, \f(CW\*(C`OurPrice\*(C'\fR, \f(CW\*(C`ListPrice\*(C'\fR, etc. .SH "AUTHOR" .IX Header "AUTHOR" Mike Schilli, .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" Copyright 2003 by Mike Schilli .PP This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.