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

#api_usageContentful::Management::ClientApiUsageMethodsFactory

Allows listing all api usage for organization.

Returns:

  • (Contentful::Management::ClientApiUsageMethodsFactory)

See Also:

  • README for details.


31
32
33
# File 'lib/contentful/management/organization.rb', line 31

def api_usage
  ClientApiUsageMethodsFactory.new(client, id)
end

#usage_periodsContentful::Management::ClientApiUsageMethodsFactory

Allows listing all usage periods for organization.

Returns:

  • (Contentful::Management::ClientApiUsageMethodsFactory)

See Also:

  • README for details.


23
24
25
# File 'lib/contentful/management/organization.rb', line 23

def usage_periods
  ClientApiUsageMethodsFactory.new(client, id)
end