Sha256: 5bf006170720dea659dc1fa5375d0c5d65d817fe35744bb526ca1a11a3d06d80

Contents?: true

Size: 693 Bytes

Versions: 33

Compression:

Stored size: 693 Bytes

Contents

require_relative 'client_editor_interface_methods_factory'
require_relative 'editor_interface'

module Contentful
  module Management
    # Wrapper for Editor Interface API for a specific Content Type
    # @private
    class ContentTypeEditorInterfaceMethodsFactory
      attr_reader :content_type, :editor_interfaces_client

      # @private
      def initialize(content_type)
        @editor_interfaces_client = ClientEditorInterfaceMethodsFactory.new(
          content_type.client,
          content_type.space.id,
          content_type.environment_id,
          content_type.id
        )
      end

      def default
        editor_interfaces_client.default
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

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