Sha256: a4046b1200be932f35071aab7429dc841f90fa95d86965e0c005bf8906e48955

Contents?: true

Size: 682 Bytes

Versions: 2

Compression:

Stored size: 682 Bytes

Contents

module Contentful
  module Management
    # Wrapper for /public API for usage from within Client Wrapper Classes
    # @private
    module ClientAssociationAllPublishedMethodsFactory
      # Gets a collection of published resources.
      #
      # @param [String] space_id
      # @param [Hash] params
      # @see _ For complete option list: http://docs.contentfulcda.apiary.io/#reference/search-parameters
      #
      # @return [Contentful::Management::Array<Contentful::Management::Resource>]
      def all_published(space_id, params = {})
        @resource_requester.all(
          { space_id: space_id, public: true },
          params
        )
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
contentful-management-1.0.1 lib/contentful/management/client_association_all_published_method_factory.rb
contentful-management-1.0.0 lib/contentful/management/client_association_all_published_method_factory.rb