Module: VinoSuggest

Defined in:
lib/vino_suggest.rb,
lib/vino_suggest/version.rb

Defined Under Namespace

Classes: Error

Constant Summary collapse

VERSION =
"0.1.0"

Instance Method Summary collapse

Instance Method Details



19
20
21
22
# File 'lib/vino_suggest.rb', line 19

def print_heading(message)
  a = Artii::Base.new font: 'digital'
  puts a.asciify(message).colorize(:light_blue)
end

#save_purchase_details(final_selection) ⇒ Object



13
14
15
16
17
# File 'lib/vino_suggest.rb', line 13

def save_purchase_details(final_selection)
  CSV.open('./Wine-Sales.csv', 'a') do |csv|
    csv << [[final_selection[0].name, final_selection[0].sale_price]]
  end
end