Sha256: 937dcede7a0a9e748a3f75851e93e324b4f1ea923be0eb77a1901187999e9de8

Contents?: true

Size: 596 Bytes

Versions: 12

Compression:

Stored size: 596 Bytes

Contents

require_relative 'client_editor_interface_methods_factory'
require_relative 'editor_interface'

module Contentful
  module Management
    # Wrapper for EditorInterface API for usage from within Space
    # @private
    class SpaceEditorInterfaceMethodsFactory
      attr_reader :space, :editor_interfaces_client

      def initialize(space)
        @space = space
        @editor_interfaces_client = ClientEditorInterfaceMethodsFactory.new(space.client)
      end

      def default(content_type_id)
        editor_interfaces_client.default(space.id, content_type_id)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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