Sha256: 4b9e20846229a699cb0d90570adfbe62fe84fd7468b064a47a64177954b55c81
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 Bytes
Contents
require 'thanos/mappers/mappable' module Thanos class EventDataMapper include Thanos::Mappable def initialize(results) @results = results end def map { id: @results['id'], title: @results['title'], description: @results['description'], resource_uri: @results['resourceURI'], start: start_date, end: end_date, urls: urls, thumbnail: thumbnail, creators: creators, characters: characters, series: series, stories: stories, comics: comics, next: next_event, previous: previous_event, } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thanos-0.6.0 | lib/thanos/mappers/event_data_mapper.rb |
thanos-0.5.0 | lib/thanos/mappers/event_data_mapper.rb |