lib/catalogcat/client/certificates.rb in bearcat-1.5.5 vs lib/catalogcat/client/certificates.rb in bearcat-1.5.6

- old
+ new

@@ -1,7 +1,11 @@ module Catalogcat class Client < Footrest::Client module Certificates + def listing_certificate(listing_id, params = {}) + get("/api/v1/certificates?certificate[listing_id]=#{listing_id}", params) + end + def create_certificate(params = {}) post('/api/v1/certificates', params) end def list_completed_certificates(params = {})