Sha256: cd27d0e8a4c23ccd71c3ecfb8fa6ac827b393ea6e7101de186be77ad4b840bae
Contents?: true
Size: 349 Bytes
Versions: 2
Compression:
Stored size: 349 Bytes
Contents
require 'thanos/mappers/event_data_mapper' require 'thanos/resources/event' module Thanos module Factory class Event def initialize(results) @results = results end def build attributes = Thanos::EventDataMapper.new(@results).map Thanos::Event.new(attributes: attributes) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thanos-0.6.0 | lib/thanos/factories/event.rb |
thanos-0.5.0 | lib/thanos/factories/event.rb |