From f91590cbd2f62f5a71a854617f6f2b769956418e Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 24 May 2024 11:37:29 -0600 Subject: Embed the profile pdf --- bin/community | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bin') diff --git a/bin/community b/bin/community index eae6996..305195d 100755 --- a/bin/community +++ b/bin/community @@ -26,6 +26,18 @@ class Community self[:name] end + def homepage_url + "https://www.calgary.ca/communities/profiles/#{name.parameterize}.html" + end + + def profile_url + "https://www.calgary.ca/content/dam/www/csps/cns/documents/community_social_statistics/community-profiles/#{name.parameterize}.pdf" + end + + def projection_url + "https://www.calgary.ca/content/dam/www/csps/cns/documents/community_social_statistics/#{name.parameterize}-pp.pdf" + end + def [](key) @row.fetch(key.to_s.upcase) end -- cgit v1.2.3