Sha256: 871b8024d8b9b61fe995c8ac4def8d634e1d3d522fda769df4c3de95ad5c4728

Contents?: true

Size: 708 Bytes

Versions: 33

Compression:

Stored size: 708 Bytes

Contents

require_relative 'client_association_methods_factory'
require_relative 'client_association_all_published_method_factory'

module Contentful
  module Management
    # Wrapper for ContentType API for usage from within Client
    # @private
    class ClientContentTypeMethodsFactory
      include Contentful::Management::ClientAssociationMethodsFactory
      include Contentful::Management::ClientAssociationAllPublishedMethodsFactory

      def all(query = {})
        content_types = super(query)
        client.update_dynamic_entry_cache!(content_types)
        content_types
      end

      def all_published(params = {})
        super({ suppress_warning: true }.merge(params))
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
contentful-management-2.7.0 lib/contentful/management/client_content_type_methods_factory.rb
contentful-management-2.6.0 lib/contentful/management/client_content_type_methods_factory.rb
contentful-management-2.5.0 lib/contentful/management/client_content_type_methods_factory.rb
contentful-management-2.4.0 lib/contentful/management/client_content_type_methods_factory.rb
contentful-management-2.3.0 lib/contentful/management/client_content_type_methods_factory.rb
contentful-management-2.2.2 lib/contentful/management/client_content_type_methods_factory.rb
contentful-management-2.2.1 lib/contentful/management/client_content_type_methods_factory.rb
contentful-management-2.2.0 lib/contentful/management/client_content_type_methods_factory.rb
contentful-management-2.1.1 lib/contentful/management/client_content_type_methods_factory.rb
contentful-management-2.1.0 lib/contentful/management/client_content_type_methods_factory.rb
contentful-management-2.0.2 lib/contentful/management/client_content_type_methods_factory.rb
contentful-management-2.0.1 lib/contentful/management/client_content_type_methods_factory.rb
contentful-management-2.0.0 lib/contentful/management/client_content_type_methods_factory.rb