diff options
| author | mo khan <mo@mokhan.ca> | 2024-05-24 11:37:29 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2024-05-24 11:37:29 -0600 |
| commit | f91590cbd2f62f5a71a854617f6f2b769956418e (patch) | |
| tree | d60ec643f3cfc6650358216eac246c7648c511cd /bin | |
| parent | 594dbca64f7327b0210ae98bf97c4ffe86faac40 (diff) | |
Embed the profile pdf
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/community | 12 |
1 files changed, 12 insertions, 0 deletions
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 |
