Sha256: 9c4095d779c23e08022a76346c139889d02a7b47a4f3f32420ac663f81ae57a3

Contents?: true

Size: 780 Bytes

Versions: 13

Compression:

Stored size: 780 Bytes

Contents

require_relative 'client_association_methods_factory'

module Contentful
  module Management
    # Wrapper for Space Periodic Usages for usage from within Client
    # @private
    class ClientSpacePeriodicUsageMethodsFactory
      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
        )
      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

13 entries across 13 versions & 1 rubygems

Version Path
contentful-management-3.8.0 lib/contentful/management/client_space_periodic_usage_methods_factory.rb
contentful-management-3.7.0 lib/contentful/management/client_space_periodic_usage_methods_factory.rb
contentful-management-3.6.0 lib/contentful/management/client_space_periodic_usage_methods_factory.rb
contentful-management-3.5.0 lib/contentful/management/client_space_periodic_usage_methods_factory.rb
contentful-management-3.4.0 lib/contentful/management/client_space_periodic_usage_methods_factory.rb
contentful-management-3.3.0 lib/contentful/management/client_space_periodic_usage_methods_factory.rb
contentful-management-3.2.0 lib/contentful/management/client_space_periodic_usage_methods_factory.rb
contentful-management-3.1.0 lib/contentful/management/client_space_periodic_usage_methods_factory.rb
contentful-management-3.0.0 lib/contentful/management/client_space_periodic_usage_methods_factory.rb
contentful-management-2.13.1 lib/contentful/management/client_space_periodic_usage_methods_factory.rb
contentful-management-2.13.0 lib/contentful/management/client_space_periodic_usage_methods_factory.rb
contentful-management-2.12.1 lib/contentful/management/client_space_periodic_usage_methods_factory.rb
contentful-management-2.12.0 lib/contentful/management/client_space_periodic_usage_methods_factory.rb