class Jekyll::Strapi::StrapiCollectionDrop

Handles a single Strapi collection in Liquid

Public Class Methods

new(collection) click to toggle source
# File lib/jekyll/strapi/drops.rb, line 27
def initialize(collection)
  @collection = collection
end

Public Instance Methods

to_liquid() click to toggle source
# File lib/jekyll/strapi/drops.rb, line 31
def to_liquid
  results = []
  @collection.each do |result|
    results << StrapiDocumentDrop.new(result)
  end
  results
end