Sha256: 58f738b87a86378280b53e3a92666a09b35ecc0d6f7b16dddad8eeb67c0c8934

Contents?: true

Size: 794 Bytes

Versions: 13

Compression:

Stored size: 794 Bytes

Contents

require_relative 'client_association_methods_factory'

module Contentful
  module Management
    # Wrapper for Organization Periodic Usages for usage from within Client
    # @private
    class ClientOrganizationPeriodicUsageMethodsFactory
      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_organization_periodic_usage_methods_factory.rb
contentful-management-3.7.0 lib/contentful/management/client_organization_periodic_usage_methods_factory.rb
contentful-management-3.6.0 lib/contentful/management/client_organization_periodic_usage_methods_factory.rb
contentful-management-3.5.0 lib/contentful/management/client_organization_periodic_usage_methods_factory.rb
contentful-management-3.4.0 lib/contentful/management/client_organization_periodic_usage_methods_factory.rb
contentful-management-3.3.0 lib/contentful/management/client_organization_periodic_usage_methods_factory.rb
contentful-management-3.2.0 lib/contentful/management/client_organization_periodic_usage_methods_factory.rb
contentful-management-3.1.0 lib/contentful/management/client_organization_periodic_usage_methods_factory.rb
contentful-management-3.0.0 lib/contentful/management/client_organization_periodic_usage_methods_factory.rb
contentful-management-2.13.1 lib/contentful/management/client_organization_periodic_usage_methods_factory.rb
contentful-management-2.13.0 lib/contentful/management/client_organization_periodic_usage_methods_factory.rb
contentful-management-2.12.1 lib/contentful/management/client_organization_periodic_usage_methods_factory.rb
contentful-management-2.12.0 lib/contentful/management/client_organization_periodic_usage_methods_factory.rb