Sha256: bf23389440c39309e1989645d4db7ffc512f5635f0f04273f307aa7687fe429b
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
require 'thanos/mappers/mappable' module Thanos class ComicDataMapper include Thanos::Mappable def initialize(results) @results = results end def map { id: @results['id'], title: @results['title'], description: @results['description'], resource_uri: @results['resourceURI'], format: @results['format'], digital_id: @results['digitalId'], issue_number: @results['issueNumber'], variant_description: @results['variantDescription'], isbn: @results['isbn'], upc: @results['upc'], diamond_code: @results['diamondCode'], ean: @results['ean'], issn: @results['issn'], page_count: @results['pageCount'], urls: urls, thumbnail: thumbnail, stories: stories, events: events, series: series, creators: creators, characters: characters, prices: prices, dates: dates, images: images, text_objects: text_objects, } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thanos-0.6.0 | lib/thanos/mappers/comic_data_mapper.rb |
thanos-0.5.0 | lib/thanos/mappers/comic_data_mapper.rb |