class Stormy::ContentList
Attributes
items[R]
Public Class Methods
fetch(app,category,options = {})
click to toggle source
# File lib/stormy/content_list.rb, line 11 def self.fetch(app,category,options = {}) items = app.cache.content_list(category,options) do app.store.content_list(category,options) end self.new(app,items) end
new(app,items)
click to toggle source
# File lib/stormy/content_list.rb, line 5 def initialize(app,items) @items = items.map do |item| Stormy::Content.new(app,item).render end end