class Contentful::Management::ClientEditorInterfaceMethodsFactory

Wrapper for EditorInterface API for usage from within Client @private

Attributes

client[R]

Public Class Methods

new(client, space_id, environment_id, content_type_id) click to toggle source
# File lib/contentful/management/client_editor_interface_methods_factory.rb, line 13
def initialize(client, space_id, environment_id, content_type_id)
  @client = client
  @resource_requester = ResourceRequester.new(client, associated_class)
  @space_id = space_id
  @environment_id = environment_id
  @content_type_id = content_type_id
end

Public Instance Methods

default() click to toggle source

Gets the Default Editor Interface

@see _ For complete option list: www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters

@return [Contentful::Management::EditorInterface]

# File lib/contentful/management/client_editor_interface_methods_factory.rb, line 26
def default
  @resource_requester.all(
    space_id: @space_id,
    environment_id: @environment_id,
    content_type_id: @content_type_id,
    editor_id: 'default'
  )
end

Private Instance Methods

associated_class() click to toggle source
# File lib/contentful/management/client_editor_interface_methods_factory.rb, line 37
def associated_class
  EditorInterface
end