-
Notifications
You must be signed in to change notification settings - Fork 8
/
meetup.rb
47 lines (44 loc) · 1.61 KB
/
meetup.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
require "time"
require "date"
Meetup = Data.define(:name, :url, :time, :description, :venue_name, :venue_address) do
def self.upcoming
all.select { |meetup| meetup.time.to_date >= Date.today }
end
def self.past
all.select { |meetup| meetup.time.to_date < Date.today }
end
def self.all
[
new(
name: "Winterish Ruby Meetup",
url: "https://lu.ma/56s5dtmn",
time: Time.parse("2024-11-27 17:30 CEST"),
description: <<~DESCRIPTION,
DESCRIPTION
venue_name: "Hemnet",
venue_address: "Sveavägen 9",
),
new(
name: "Cozy Ruby Meetup at Hemnet",
url: "https://www.meetup.com/sthlmrb/events/303483996/",
time: Time.parse("2024-09-25 17:30 CEST"),
description: <<~DESCRIPTION,
Welcome to Ruby Meetup at Hemnet office at Sveavägen 9.
After Baltic ruby we have talked about a need to have a place of
gathering for community. Hemnet office can be that place with some
home rules and keeping it low-key.
DESCRIPTION
venue_name: "Hemnet",
venue_address: "Sveavägen 9",
),
new(
name: "Ruby Meetup with Hemnet",
url: "https://rubymeetup.confetti.events/signup",
time: Time.parse("2024-03-13 17:30 CEST"),
description: "A sparkling event hosted by Ruby fans for Ruby fans in a cozy environment with 🍕 and🧋. Listen to our colleague Olov talking about 'The Journey to a new Map' and Youssef dive into image postprocessing in Ruby.",
venue_name: "Hemnet",
venue_address: "Sveavägen 9",
)
]
end
end