Sha256: 4e25468b31a4e4616851300f6d2d31276993a072a24ea677375cbeaf4c23859d
Contents?: true
Size: 516 Bytes
Versions: 2
Compression:
Stored size: 516 Bytes
Contents
require 'thanos/mappers/mappable' module Thanos class CharacterDataMapper include Thanos::Mappable def initialize(results) @results = results end def map { id: @results['id'], name: @results['name'], description: @results['description'], resource_uri: @results['resourceURI'], urls: urls, thumbnail: thumbnail, comics: comics, stories: stories, events: events, series: series, } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thanos-0.6.0 | lib/thanos/mappers/character_data_mapper.rb |
thanos-0.5.0 | lib/thanos/mappers/character_data_mapper.rb |