Sha256: 30a6d0d99b73d6790ebe6783f10e38b22a1a3062d83fa25e6b7fbc8263c59a95
Contents?: true
Size: 622 Bytes
Versions: 2
Compression:
Stored size: 622 Bytes
Contents
module A2z module Responses class TopItem attr_accessor :asin, :title, :product_group, :actor, :artist, :author, :detail_page_url def self.from_response(data) new.tap do |top_item| top_item.asin = data['ASIN'] top_item.title = data['Title'] top_item.product_group = data['ProductGroup'] top_item.actor = data['Actor'] top_item.artist = data['Artist'] top_item.author = data['Author'] top_item.detail_page_url = data['DetailPageURL'] top_item.freeze end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
a2z-0.1.3 | lib/a2z/responses/top_item.rb |
a2z-0.1.2 | lib/a2z/responses/top_item.rb |