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-2.7.0 lib/contentful/management/content_type_editor_interface_methods_factory.rb
contentful-management-2.6.0 lib/contentful/management/content_type_editor_interface_methods_factory.rb
contentful-management-2.5.0 lib/contentful/management/content_type_editor_interface_methods_factory.rb
contentful-management-2.4.0 lib/contentful/management/content_type_editor_interface_methods_factory.rb
contentful-management-2.3.0 lib/contentful/management/content_type_editor_interface_methods_factory.rb
contentful-management-2.2.2 lib/contentful/management/content_type_editor_interface_methods_factory.rb
contentful-management-2.2.1 lib/contentful/management/content_type_editor_interface_methods_factory.rb
contentful-management-2.2.0 lib/contentful/management/content_type_editor_interface_methods_factory.rb
contentful-management-2.1.1 lib/contentful/management/content_type_editor_interface_methods_factory.rb
contentful-management-2.1.0 lib/contentful/management/content_type_editor_interface_methods_factory.rb
contentful-management-2.0.2 lib/contentful/management/content_type_editor_interface_methods_factory.rb
contentful-management-2.0.1 lib/contentful/management/content_type_editor_interface_methods_factory.rb
contentful-management-2.0.0 lib/contentful/management/content_type_editor_interface_methods_factory.rb