Sha256: 4c8928d72f48b765fa471b284f116511210a8cba753054b687709da075d88d68

Contents?: true

Size: 658 Bytes

Versions: 14

Compression:

Stored size: 658 Bytes

Contents

require_relative 'client_association_methods_factory'
require_relative 'client_association_all_published_method_factory'

module Contentful
  module Management
    # Wrapper for Entry API for usage from within Client
    # @private
    class ClientEntryMethodsFactory
      include Contentful::Management::ClientAssociationMethodsFactory
      include Contentful::Management::ClientAssociationAllPublishedMethodsFactory

      def create(content_type, attributes)
        associated_class.create(client, content_type.space.id, attributes.merge(content_type: content_type))
      end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
contentful-management-1.10.1 lib/contentful/management/client_entry_methods_factory.rb
contentful-management-1.10.0 lib/contentful/management/client_entry_methods_factory.rb
contentful-management-1.9.0 lib/contentful/management/client_entry_methods_factory.rb
contentful-management-1.8.1 lib/contentful/management/client_entry_methods_factory.rb
contentful-management-1.8.0 lib/contentful/management/client_entry_methods_factory.rb
contentful-management-1.7.0 lib/contentful/management/client_entry_methods_factory.rb
contentful-management-1.6.0 lib/contentful/management/client_entry_methods_factory.rb
contentful-management-1.5.0 lib/contentful/management/client_entry_methods_factory.rb
contentful-management-1.4.0 lib/contentful/management/client_entry_methods_factory.rb
contentful-management-1.3.0 lib/contentful/management/client_entry_methods_factory.rb
contentful-management-1.2.0 lib/contentful/management/client_entry_methods_factory.rb
contentful-management-1.1.0 lib/contentful/management/client_entry_methods_factory.rb
contentful-management-1.0.1 lib/contentful/management/client_entry_methods_factory.rb
contentful-management-1.0.0 lib/contentful/management/client_entry_methods_factory.rb