Module: AppStoreConnectApi::Domain::Certificates
- Included in:
- AppStoreConnectApi::Domain
- Defined in:
- lib/app_store_connect_api/domain/certificates.rb
Instance Method Summary collapse
- #certificate(certificate_id, options = {}) ⇒ Object
- #certificates(options = {}) ⇒ Object
- #create_certificate(attributes) ⇒ Object
- #delete_certificate(certificate_id) ⇒ Object (also: #revoke_certificate)
Instance Method Details
#certificate(certificate_id, options = {}) ⇒ Object
12 13 14 |
# File 'lib/app_store_connect_api/domain/certificates.rb', line 12 def certificate(certificate_id, = {}) get "/v1/certificates/#{certificate_id}", end |
#certificates(options = {}) ⇒ Object
7 8 9 |
# File 'lib/app_store_connect_api/domain/certificates.rb', line 7 def certificates( = {}) get '/v1/certificates', end |
#create_certificate(attributes) ⇒ Object
17 18 19 20 |
# File 'lib/app_store_connect_api/domain/certificates.rb', line 17 def create_certificate(attributes) post '/v1/certificates', data: { attributes: attributes, type: 'certificates' } end |
#delete_certificate(certificate_id) ⇒ Object Also known as: revoke_certificate
23 24 25 |
# File 'lib/app_store_connect_api/domain/certificates.rb', line 23 def delete_certificate(certificate_id) delete "/v1/certificates/#{certificate_id}" end |