Sha256: d58f062bbb22ac811defe575df216f5048be1c7e80ed39df1ff27c2c62be3bd0
Contents?: true
Size: 449 Bytes
Versions: 2
Compression:
Stored size: 449 Bytes
Contents
require 'thanos/resources/item/event' module Thanos module Factory module Item class Event def initialize(results) @results = results end def build if @results.is_a?(Array) @results.collect do |comic| Thanos::Item::Event.new(comic) end else [Thanos::Item::Event.new(@results)] end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thanos-0.6.0 | lib/thanos/factories/item/event.rb |
thanos-0.5.0 | lib/thanos/factories/item/event.rb |