Sha256: 9be851b88690b542087d71dc921cbf42b0a8370f53e1acc4765416caf23a85d0

Contents?: true

Size: 482 Bytes

Versions: 3

Compression:

Stored size: 482 Bytes

Contents

require 'happymapper'

module Cafepress
  module Search
    class Product
      include HappyMapper
      tag 'product'

      attribute :merchandise_id, Integer, :tag => 'productTypeNumber'
      attribute :merchandise_name, String, :tag => 'item'
      attribute :price, String
      attribute :id, Integer, :tag => 'productNumber'
      attribute :thumbnail_url, String, :tag => 'thumbnailUrl'
      attribute :detail_page_url, String, :tag => 'marketplaceUrl'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cafepress-search-1.0.2 lib/cafepress/search/product.rb
cafepress-search-1.0.1 lib/cafepress/search/product.rb
cafepress-search-1.0.0 lib/cafepress/search/product.rb