Sha256: 75bfb0ef8052fbe83322c90a3ac770796e6abffcf51990c2b5bdd24c22da4f98

Contents?: true

Size: 831 Bytes

Versions: 9

Compression:

Stored size: 831 Bytes

Contents

require_relative 'client_association_methods_factory'

module Contentful
  module Management
    # Wrapper for Usage Period for usage from within Client
    # @private
    class ClientUsagePeriodMethodsFactory
      include Contentful::Management::ClientAssociationMethodsFactory

      def initialize(client, organization_id)
        super(client)
        @organization_id = organization_id
      end

      def all(params = {})
        @resource_requester.all(
          {
            organization_id: @organization_id
          },
          params,
          'x-contentful-enable-alpha-feature' => 'usage-insights'
        )
      end

      def new(*)
        fail 'Not supported'
      end

      def find(*)
        fail 'Not supported'
      end

      def create(*)
        fail 'Not supported'
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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