Sha256: 643461a7b188a982508cec3976b6da255be8243e483ab1e36452823def525016

Contents?: true

Size: 602 Bytes

Versions: 2

Compression:

Stored size: 602 Bytes

Contents

# frozen_string_literal: true

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

2 entries across 2 versions & 1 rubygems

Version Path
contentful-management-3.10.0 lib/contentful/management/client_space_membership_methods_factory.rb
contentful-management-3.9.0 lib/contentful/management/client_space_membership_methods_factory.rb