Skip to content

Instantly share code, notes, and snippets.

@charles-eric
charles-eric / interface.rb
Created January 13, 2015 16:59
etsy wishlist program
require_relative "scraper"
def print_list(list)
list.each_with_index do |article, index|
if article[:bought]
puts "#{index + 1} - #{article[:name]} - (#{article[:price]}€)[X]"
else
puts "#{index + 1} - #{article[:name]} - (#{article[:price]}€)[-]"
end
end