class Contentful::Management::Organization

Resource class for Organization. @see _ www.contentful.com/developers/docs/references/content-management-api/#/reference/organizations

Public Class Methods

build_endpoint(_endpoint_options) click to toggle source

@private

# File lib/contentful/management/organization.rb, line 18
def self.build_endpoint(_endpoint_options)
  'organizations'
end

Public Instance Methods

periodic_usages() click to toggle source

Allows listing all usage periods for organization grouped by organization or space. @see _ README for details.

@return [Contentful::Management::ClientOrganizationPeriodicUsageMethodsFactory]

# File lib/contentful/management/organization.rb, line 26
def periodic_usages
  ClientOrganizationPeriodicUsageMethodsFactory.new(client, id)
end
space_periodic_usages() click to toggle source

Allows listing all usage periods for organization grouped by organization or space. @see _ README for details.

@return [Contentful::Management::ClientSpacePeriodicUsageMethodsFactory]

# File lib/contentful/management/organization.rb, line 34
def space_periodic_usages
  ClientSpacePeriodicUsageMethodsFactory.new(client, id)
end
users() click to toggle source

Allows viewing of users in context of an organization Allows listing all users for an organization, and finding one by ID. @see _ README for details.

@return [Contentful::Management::OrganizationUserMethodsFactory]

# File lib/contentful/management/organization.rb, line 43
def users
  OrganizationUserMethodsFactory.new(client, id)
end