# along with Koha; if not, see <http://www.gnu.org/licenses>.
use Modern::Perl;
-use Carp;
use Koha::Database;
+use Koha::Quotes;
use base qw(Koha::Object);
=cut
+=head3 to_api_mapping
+
+This method returns the mapping for representing a Koha::Quote object
+on the API.
+
+=cut
+
+sub to_api_mapping {
+ return {
+ id => 'quote_id',
+ source => 'source',
+ text => 'text',
+ timestamp => 'displayed_on',
+ };
+}
+
=head3 _type
=cut
return 'Quote';
}
-1;
\ No newline at end of file
+1;