Skip to content

Commit 2f65c32

Browse files
committed
Use fetch() to refer to key in Hash
1 parent 1c12056 commit 2f65c32

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/statistics/tasks/connpass.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ def run
2828
dojo_name: dojo_event_service.dojo.name,
2929
service_name: dojo_event_service.name,
3030
service_group_id: dojo_event_service.group_id,
31-
event_id: e['event_id'],
32-
event_url: e['event_url'],
33-
participants: e['accepted'],
34-
evented_at: Time.zone.parse(e['started_at']))
31+
event_id: e.fetch('id'),
32+
event_url: e.fetch('event_url'),
33+
participants: e.fetch('accepted'),
34+
evented_at: Time.zone.parse(e.fetch('started_at'))
35+
)
3536
end
3637
end
3738

0 commit comments

Comments
 (0)