-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLibrary_Status.rb
105 lines (91 loc) · 1.92 KB
/
Library_Status.rb
1
2
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
time = Time.now
today = time.wday
if today == 1
cafe = "7am — 8:30pm"
bushwick = "Closed"
leonard = "10am - 6pm"
wburg = "10am - 6pm"
housing = "9am - 9pm"
jefferson = "10am - 8pm"
met = "10am - 5:30pm"
schwarzman = "10am - 6pm"
sibl = "11am - 6pm"
end
if today == 2
cafe = "7am — 8:30pm"
bushwick = "10am - 6pm"
leonard = "10am - 8pm"
wburg = "1pm to 8pm"
housing = "9am - 9pm"
jefferson = "11am - 6pm"
met = "10am - 5:30pm"
schwarzman = "10am - 8pm"
sibl = "10am - 8pm"
end
if today == 3
cafe = "7am — 8:30pm"
bushwick = "10am - 8pm"
leonard = "10am - 8pm"
wburg = "10am to 6pm"
housing = "9am - 9pm"
jefferson = "10am - 8pm"
met = "10am - 5:30pm"
schwarzman = "10am - 8pm"
sibl = "10am - 8pm"
end
if today == 4
cafe = "7am — 8:30pm"
bushwick = "10am - 8pm"
leonard = "10am - 8pm"
wburg = "10am - 6pm"
housing = "9am - 9pm"
jefferson = "11am - 6pm"
met = "10am - 5:30pm"
schwarzman = "10am - 6pm"
sibl = "10am - 8pm"
end
if today == 5
cafe = "7am — 8:30pm"
bushwick = "10am - 6pm"
leonard = "10am - 6pm"
wburg = "10am - 6pm"
housing = "9am - 9pm"
jefferson = "10am - 5pm"
met = "10am - 9pm"
schwarzman = "10am - 6pm"
sibl = "11am - 6pm"
end
if today == 6
cafe = "8am — 8:30pm"
bushwick = "10am - 5pm"
leonard = "10am - 5pm"
wburg = "Closed"
housing = "10am - 5pm"
jefferson = "10am - 5pm"
met = "10am - 9pm"
schwarzman = "10am - 6pm"
sibl = "11am - 6pm"
end
if today == 7
cafe = "9am — 8:30pm"
bushwick = "Closed"
leonard = "Closed"
wburg = "Closed"
housing = "10am - 5pm"
jefferson = "Closed"
met = "10am - 5:30pm"
schwarzman = "1pm - 5pm"
sibl = "Closed"
end
puts "BROOKLYN"
puts "19 Cafe #{cafe}"
puts "Bushwick Library #{bushwick}"
puts "Leonard Library #{leonard}"
puts "Wburg Library #{wburg}"
puts ''
puts "MANHATTAN"
puts "Housing Works #{housing}"
puts "Jefferson Market #{jefferson}"
puts "MET #{met}"
puts "Schwarzman #{schwarzman}"
puts "SIBL #{sibl}"