Class: Contentful::Management::Role

Inherits:
Object
  • Object
show all
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

#sys

Attributes included from Resource

#client, #properties, #raw_object, #request

Class Method Summary collapse

Methods included from Contentful::Management::Resource::Refresher

#reload

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.

Parameters:

Returns:



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.

Parameters:

Returns:



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