Sha256: fc908a84cbed0c3e4d600161e52e8b813c392b248315c4d3bef78abc0de57c9d

Contents?: true

Size: 1.04 KB

Versions: 9

Compression:

Stored size: 1.04 KB

Contents

require_relative 'resource'

module Contentful
  module Management
    # Resource class for Organization.
    # @see _ https://www.contentful.com/developers/docs/references/content-management-api/#/reference/organizations
    class Organization
      include Contentful::Management::Resource
      include Contentful::Management::Resource::Refresher
      include Contentful::Management::Resource::SystemProperties

      property :name

      # @private
      def self.build_endpoint(_endpoint_options)
        'organizations'
      end

      # Allows listing all usage periods for organization.
      # @see _ README for details.
      #
      # @return [Contentful::Management::ClientApiUsageMethodsFactory]
      def usage_periods
        ClientApiUsageMethodsFactory.new(client, id)
      end

      # Allows listing all api usage for organization.
      # @see _ README for details.
      #
      # @return [Contentful::Management::ClientApiUsageMethodsFactory]
      def api_usage
        ClientApiUsageMethodsFactory.new(client, id)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
contentful-management-2.11.0 lib/contentful/management/organization.rb
contentful-management-2.10.0 lib/contentful/management/organization.rb
contentful-management-2.9.1 lib/contentful/management/organization.rb
contentful-management-2.9.0 lib/contentful/management/organization.rb
contentful-management-2.8.2 lib/contentful/management/organization.rb
contentful-management-2.8.1 lib/contentful/management/organization.rb
contentful-management-2.8.0 lib/contentful/management/organization.rb
contentful-management-2.7.0 lib/contentful/management/organization.rb
contentful-management-2.6.0 lib/contentful/management/organization.rb