Bug 20310: (follow-up) Add or remove orgcode in second try
[koha-ffzg.git] / Koha / Quote.pm
index acb844d..49868aa 100644 (file)
@@ -33,6 +33,22 @@ Koha::Quote - Koha Quote object class
 
 =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
@@ -41,4 +57,4 @@ sub _type {
     return 'Quote';
 }
 
-1;
\ No newline at end of file
+1;