Sha256: b0b390ebf7aae3e6d1cad1bc93f16d7cf2fbd2d72fe9204c82c13365148ce904

Contents?: true

Size: 430 Bytes

Versions: 4

Compression:

Stored size: 430 Bytes

Contents

require 'happymapper'

module Cafepress
  module Search
    class SearchResult
      include HappyMapper
      tag 'searchResultItem'

      attribute :search_type, String, :tag => 'type'
      attribute :design_url, String, :tag => 'mediaUrl'
      attribute :design_detail_page_url, String, :tag => 'marketplaceUrl'
      attribute :design_id, Integer, :tag => 'mediaId'
    
      has_many :products, Product
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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