jamii 0.0.0 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jamii.rb +49 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47840d0c48c7c70779dd81f1e480437d55587989
4
- data.tar.gz: 6417527b56080fff70f16450cdc63f87eaaae5f7
3
+ metadata.gz: 679f36039b25863ce2c16f4c6a2fd28800a1fc14
4
+ data.tar.gz: 999b18c04a7a036c8b99b3f39065c436428e55d1
5
5
  SHA512:
6
- metadata.gz: 535509e479a42bc09d105544350a6664ef28e872b5ba23d590e02aa5b90cbf6bfac5f2362d32838603b0becb200e67b74d543806b7c19114752d47ffcccbefac
7
- data.tar.gz: 84eb0539efa7151aa636a05f3644e656bc645ec57ae041ede460e52cfa09a0822360911aceaceec4591bbca770fbc1e37f0549fb230245cf4a16fe39a3f85f3b
6
+ metadata.gz: 492af4956ed0c3a0f92a49c35574af9041d78c05b32a21b81a87fb05d0b04bf7cfc7637b1455c459af8cbef311da67a6c3af92e762126a6470206101f6490a8f
7
+ data.tar.gz: a636bb48d796371cdf6bccda788d91514d1cab6be2a3ab39b7740f9404a98d1494cd020feea8a82f8faf80ffe58ba58e9d5f790a39e932f14cbd818757305d90
data/lib/jamii.rb CHANGED
@@ -1,6 +1,51 @@
1
- # lib/jamii.rb
2
- class Hola
3
- def self.hi
4
- puts "Hello world!"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jamii
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Bell