Class: Contentful::Management::Organization

Inherits:
Object
  • Object
show all
Includes:
Resource, Resource::Refresher, Resource::SystemProperties
Defined in:
lib/contentful/management/organization.rb

Overview

Resource class for Organization.

See Also:

  • https://www.contentful.com/developers/docs/references/content-management-api/#/reference/organizations

Instance Attribute Summary

Attributes included from Resource::SystemProperties

#sys

Attributes included from Resource

#client, #properties, #raw_object, #request

Instance Method Summary collapse

Methods included from Resource::Refresher

#reload

Methods included from Resource

#array?, #default_locale, #destroy, #environment_id, #fields, #nested_locale_fields?, #resource?, #save, #sys, #update

Instance Method Details

#periodic_usagesContentful::Management::ClientOrganizationPeriodicUsageMethodsFactory

Allows listing all usage periods for organization grouped by organization or space.

Returns:

  • (Contentful::Management::ClientOrganizationPeriodicUsageMethodsFactory)

See Also:

  • README for details.


26
27
28
# File 'lib/contentful/management/organization.rb', line 26

def periodic_usages
  ClientOrganizationPeriodicUsageMethodsFactory.new(client, id)
end

#space_periodic_usagesContentful::Management::ClientSpacePeriodicUsageMethodsFactory

Allows listing all usage periods for organization grouped by organization or space.

Returns:

  • (Contentful::Management::ClientSpacePeriodicUsageMethodsFactory)

See Also:

  • README for details.


34
35
36
# File 'lib/contentful/management/organization.rb', line 34

def space_periodic_usages
  ClientSpacePeriodicUsageMethodsFactory.new(client, id)
end

#usersContentful::Management::OrganizationUserMethodsFactory

Allows viewing of users in context of an organization Allows listing all users for an organization, and finding one by ID.

Returns:

  • (Contentful::Management::OrganizationUserMethodsFactory)

See Also:

  • README for details.


43
44
45
# File 'lib/contentful/management/organization.rb', line 43

def users
  OrganizationUserMethodsFactory.new(client, id)
end