Sha256: 062bbbc03ae2cad2b32ab345e932b6fc9af20cef0730d325663d70c369013c6e

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

module Shoppr
  class SearchHistory
    
    attr_accessor :category_selections
    
    def initialize(cat_mash)        
      Shoppr.map_mash_attrs(self, cat_mash)
      
      if self.category_selections
        @category_selections = self.category_selection.map {|category_selections| CategorySelection.new(category_selections) } 
      else
        @category_selections = []
      end
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoppr-0.2.3 lib/shoppr/search_history.rb