Class: Contentful::Management::Organization
- Inherits:
-
Object
- Object
- Contentful::Management::Organization
- Includes:
- Resource, Resource::Refresher, Resource::SystemProperties
- Defined in:
- lib/contentful/management/organization.rb
Overview
Resource class for Organization.
Instance Attribute Summary
Attributes included from Resource::SystemProperties
Attributes included from Resource
#client, #properties, #raw_object, #request
Instance Method Summary collapse
-
#periodic_usages ⇒ Contentful::Management::ClientOrganizationPeriodicUsageMethodsFactory
Allows listing all usage periods for organization grouped by organization or space.
-
#space_periodic_usages ⇒ Contentful::Management::ClientSpacePeriodicUsageMethodsFactory
Allows listing all usage periods for organization grouped by organization or space.
-
#users ⇒ Contentful::Management::OrganizationUserMethodsFactory
Allows viewing of users in context of an organization Allows listing all users for an organization, and finding one by ID.
Methods included from Resource::Refresher
Methods included from Resource
#array?, #default_locale, #destroy, #environment_id, #fields, #nested_locale_fields?, #resource?, #save, #sys, #update
Instance Method Details
#periodic_usages ⇒ Contentful::Management::ClientOrganizationPeriodicUsageMethodsFactory
Allows listing all usage periods for organization grouped by organization or space.
26 27 28 |
# File 'lib/contentful/management/organization.rb', line 26 def periodic_usages ClientOrganizationPeriodicUsageMethodsFactory.new(client, id) end |
#space_periodic_usages ⇒ Contentful::Management::ClientSpacePeriodicUsageMethodsFactory
Allows listing all usage periods for organization grouped by organization or space.
34 35 36 |
# File 'lib/contentful/management/organization.rb', line 34 def space_periodic_usages ClientSpacePeriodicUsageMethodsFactory.new(client, id) end |
#users ⇒ Contentful::Management::OrganizationUserMethodsFactory
Allows viewing of users in context of an organization Allows listing all users for an organization, and finding one by ID.
43 44 45 |
# File 'lib/contentful/management/organization.rb', line 43 def users OrganizationUserMethodsFactory.new(client, id) end |