Method: Contentful::Management::Client#roles

Defined in:
lib/contentful/management/client.rb

#roles(space_id) ⇒ Contentful::Management::ClientRoleMethodsFactory

Allows manipulation of roles in context of the current client Allows listing all roles for client, creating new and finding one by ID.

Returns:

  • (Contentful::Management::ClientRoleMethodsFactory)

See Also:

  • README for details.


229
230
231
# File 'lib/contentful/management/client.rb', line 229

def roles(space_id)
  ClientRoleMethodsFactory.new(self, space_id)
end