Class: Contentful::Management::Role
- Inherits:
-
Object
- Object
- Contentful::Management::Role
- Includes:
- Resource, Contentful::Management::Resource::Refresher, Contentful::Management::Resource::SystemProperties
- Defined in:
- lib/contentful/management/role.rb
Overview
Resource class for Role.
Instance Attribute Summary
Attributes included from Contentful::Management::Resource::SystemProperties
Attributes included from Resource
#client, #properties, #raw_object, #request
Class Method Summary collapse
-
.create(client, space_id, attributes = {}) ⇒ Contentful::Management::Role
Creates a role.
-
.find(client, space_id, role_id) ⇒ Contentful::Management::Role
Finds a role by ID.
Methods included from Contentful::Management::Resource::Refresher
Methods included from Resource
#array?, #default_locale, #destroy, #environment_id, #fields, #nested_locale_fields?, #resource?, #save, #sys, #update
Class Method Details
.create(client, space_id, attributes = {}) ⇒ Contentful::Management::Role
Creates a role.
35 36 37 |
# File 'lib/contentful/management/role.rb', line 35 def self.create(client, space_id, attributes = {}) super(client, space_id, nil, attributes) end |
.find(client, space_id, role_id) ⇒ Contentful::Management::Role
Finds a role by ID.
46 47 48 |
# File 'lib/contentful/management/role.rb', line 46 def self.find(client, space_id, role_id) super(client, space_id, nil, role_id) end |