jamii 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jamii.rb +49 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 679f36039b25863ce2c16f4c6a2fd28800a1fc14
|
4
|
+
data.tar.gz: 999b18c04a7a036c8b99b3f39065c436428e55d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 492af4956ed0c3a0f92a49c35574af9041d78c05b32a21b81a87fb05d0b04bf7cfc7637b1455c459af8cbef311da67a6c3af92e762126a6470206101f6490a8f
|
7
|
+
data.tar.gz: a636bb48d796371cdf6bccda788d91514d1cab6be2a3ab39b7740f9404a98d1494cd020feea8a82f8faf80ffe58ba58e9d5f790a39e932f14cbd818757305d90
|
data/lib/jamii.rb
CHANGED
@@ -1,6 +1,51 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# This is the main program file.
|
2
|
+
require './jamii_admin.rb'
|
3
|
+
require './jamii_visitor.rb'
|
4
|
+
require './Constant_Module.rb'
|
5
|
+
include Constant_Module
|
6
|
+
|
7
|
+
class Main_Menu
|
8
|
+
attr_accessor :main_menu
|
9
|
+
attr_accessor :org_info
|
10
|
+
attr_accessor :input
|
11
|
+
|
12
|
+
def main_menu_display input = 1
|
13
|
+
# Menu item constants
|
14
|
+
# Type_1 = "Initial organization Setup"
|
15
|
+
# Type_2 = "Setting up a meeting"
|
16
|
+
# Type_3 = "Using the attendance Kioske"
|
17
|
+
# Type_4 = "Reviewing Metrics"
|
18
|
+
|
19
|
+
display = "Welcome to Jamii your meeting attendance manager.\nPlease see the following options below.
|
20
|
+
\nType 1 for #{Type_1}
|
21
|
+
\nType 2 for #{Type_2}
|
22
|
+
\nType 3 for #{Type_3}
|
23
|
+
\nType 4 for #{Type_4}"
|
24
|
+
|
25
|
+
puts "#{display}"
|
26
|
+
|
27
|
+
input = gets.chomp.to_i
|
28
|
+
|
29
|
+
next_stop = main_menu_selection(input)
|
5
30
|
end
|
31
|
+
|
32
|
+
def main_menu_selection (input)
|
33
|
+
case input
|
34
|
+
|
35
|
+
when 1
|
36
|
+
puts "#{Type_1}"
|
37
|
+
@org_info = Admin.new
|
38
|
+
@org_info.create_organization
|
39
|
+
@org_info.roster
|
40
|
+
|
41
|
+
|
42
|
+
when 2
|
43
|
+
puts "#{Type_2}"
|
44
|
+
when 3
|
45
|
+
puts "#{Type_3}"
|
46
|
+
when 4
|
47
|
+
puts "#{Type_4}"
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
6
51
|
end
|