Class: Contentful::Management::ApiKey
- Inherits:
-
Object
- Object
- Contentful::Management::ApiKey
- Includes:
- Resource, Resource::Refresher, Resource::SystemProperties
- Defined in:
- lib/contentful/management/api_key.rb
Overview
Resource class for ApiKey.
Instance Attribute Summary
Attributes included from Resource::SystemProperties
Attributes included from Resource
#client, #default_locale, #properties, #raw_object, #request
Class Method Summary collapse
-
.create(client, space_id, attributes = {}) ⇒ Contentful::Management::ApiKey
Creates an API Key.
-
.find(client, space_id, api_key_id) ⇒ Contentful::Management::ApiKey
Finds an API Key by ID.
Methods included from Resource::Refresher
Methods included from Resource
#array?, #destroy, #environment_id, #fields, #nested_locale_fields?, #resource?, #sys, #update
Class Method Details
.create(client, space_id, attributes = {}) ⇒ Contentful::Management::ApiKey
Creates an API Key.
33 34 35 |
# File 'lib/contentful/management/api_key.rb', line 33 def self.create(client, space_id, attributes = {}) super(client, space_id, nil, attributes) end |
.find(client, space_id, api_key_id) ⇒ Contentful::Management::ApiKey
Finds an API Key by ID.
44 45 46 |
# File 'lib/contentful/management/api_key.rb', line 44 def self.find(client, space_id, api_key_id) super(client, space_id, nil, api_key_id) end |