Class: Sunnyside::Menu

Inherits:
Object
  • Object
show all
Defined in:
lib/sunnyside/menu.rb

Instance Method Summary collapse

Instance Method Details

#startObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/sunnyside/menu.rb', line 3

def start
  loop do 
    puts " 1.) LEDGER IMPORT" 
    puts " 2.) EDI IMPORT"
    puts " 3.) 837 IMPORT"
    puts " 4.) A/R REPORT"
    puts " 5.) CASH RECEIPT IMPORT"
    puts " 6.) ACCESS FTP"
    puts " 7.) EXPIRING AUTHORIZATION REPORT"
    puts " 8.) EXPORT PRIVATE CLIENT PDF'S"
    puts " 9.) MCO - MLTC HOURS UPDATE"
    puts "10.) CUSTOM QUERY"
    puts "11.) ADD A NEW PROVIDER"
    puts "12.) VIEW DATABASE ON WEB BROWSER"
    puts "13.) ADD LOGIN CREDENTIALS FOR NEW FTP EDI FILE TRANSFER"
    print "select option: "
    case gets.chomp
    when '1' 
      Sunnyside.ledger_file
      Sunnyside.process_private
    when '2' 
      Sunnyside.edi_parser
    when '3'
      Sunnyside.parse_pdf
    when '4' 
      Sunnyside.run_report
    when '5' 
      Sunnyside.cash_receipt
    when '6'
      Sunnyside.access_ftp
    when '7'
      Sunnyside.show_opts
    when '8'
      Sunnyside.private_clients
    when '9'
      Sunnyside.run_mco_mltc
    when '10'
      Sunnyside.query
    when '11'
      Sunnyside.advanced_opts
    when '12'
      Sunnyside.rails_server
    when '13'
      Sunnyside.add_provider_to_ftp
    else
      exit
    end
  end
end