Sha256: dc59cae4ec064fefa218ee38f199bcfe10072cb6f0744a6be5bcb53f0f297f84
Contents?: true
Size: 1009 Bytes
Versions: 5
Compression:
Stored size: 1009 Bytes
Contents
require_relative 'client_association_methods_factory' require_relative 'editor_interface' module Contentful module Management # Wrapper for EditorInterface API for usage from within Client # @private class ClientEditorInterfaceMethodsFactory attr_reader :client def initialize(client) @client = client @resource_requester = ResourceRequester.new(client, associated_class) end # Gets the Default Editor Interface # # @param [String] space_id # @param [String] content_type_id # @param [Hash] params # @see _ For complete option list: http://docs.contentfulcda.apiary.io/#reference/search-parameters # # @return [Contentful::Management::EditorInterface] def default(space_id, content_type_id) @resource_requester.all(space_id: space_id, content_type_id: content_type_id, editor_id: 'default') end private def associated_class EditorInterface end end end end
Version data entries
5 entries across 5 versions & 1 rubygems