summaryrefslogtreecommitdiff
path: root/bin/community
diff options
context:
space:
mode:
Diffstat (limited to 'bin/community')
-rwxr-xr-xbin/community12
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