Module: Catalogcat::Client::Certificates
- Defined in:
- lib/catalogcat/client/certificates.rb
Instance Method Summary collapse
- #create_certificate(params = {}) ⇒ Object
- #list_completed_certificates(params = {}) ⇒ Object
- #listing_certificate(listing_id, params = {}) ⇒ Object
Instance Method Details
#create_certificate(params = {}) ⇒ Object
8 9 10 |
# File 'lib/catalogcat/client/certificates.rb', line 8 def create_certificate(params = {}) post('/api/v1/certificates', params) end |
#list_completed_certificates(params = {}) ⇒ Object
12 13 14 |
# File 'lib/catalogcat/client/certificates.rb', line 12 def list_completed_certificates(params = {}) get("/api/v1/completed_certificates", params) end |
#listing_certificate(listing_id, params = {}) ⇒ Object
4 5 6 |
# File 'lib/catalogcat/client/certificates.rb', line 4 def listing_certificate(listing_id, params = {}) get("/api/v1/certificates?certificate[listing_id]=#{listing_id}", params) end |