Sha256: 3b8b6f123370367428e7a8648d699ce76b8594a49ea13023cbebffd1a24344e2

Contents?: true

Size: 571 Bytes

Versions: 25

Compression:

Stored size: 571 Bytes

Contents

require_relative 'client_association_methods_factory'

module Contentful
  module Management
    # Wrapper for Space Membership API for usage from within Client
    # @private
    class ClientSpaceMembershipMethodsFactory
      include Contentful::Management::ClientAssociationMethodsFactory

      def new(*)
        fail 'Not supported'
      end

      def find(resource_id)
        associated_class.find(client, @space_id, resource_id)
      end

      def create(attributes)
        associated_class.create(client, @space_id, attributes)
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
contentful-management-3.8.0 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-3.7.0 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-3.6.0 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-3.5.0 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-3.4.0 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-3.3.0 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-3.2.0 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-3.1.0 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-3.0.0 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-2.13.1 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-2.13.0 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-2.12.1 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-2.12.0 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-2.11.0 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-2.10.0 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-2.9.1 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-2.9.0 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-2.8.2 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-2.8.1 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-2.8.0 lib/contentful/management/client_space_membership_methods_factory.rb