aboutsummaryrefslogtreecommitdiffstats
path: root/lib/world_foi_websites.rb
blob: c3f3655dfa1485e9f8840228e0ee8861ca4fd8bb (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# -*- coding: utf-8 -*-
class WorldFOIWebsites
    def self.world_foi_websites
        world_foi_websites = [
                              {:name => "WhatDoTheyKnow",
                                  :country_name => "United Kingdom",
                                  :country_iso_code => "GB",
                                  :url => "http://www.whatdotheyknow.com"},
                              {:name => "Informata Zyrtare",
                                  :country_name => "Kosova",
                                  :country_iso_code => "XK",
                                  :url => "http://informatazyrtare.org"},
                              {:name => "Ask The EU",
                                  :country_name => "European Union",
                                  :country_iso_code => "",
                                  :url => "http://asktheeu.org"},
                              {:name => "MuckRock.com",
                                  :country_name => "United States of America",
                                  :country_iso_code => "US",
                                  :url => "http://www.muckrock.com"},
                              {:name => "FYI",
                                  :country_name => "New Zealand",
                                  :country_iso_code => "NZ",
                                  :url => "http://fyi.org.nz"},
                              {:name => "Frag den Staat",
                                  :country_name => "Deutschland",
                                  :country_iso_code => "DE",
                                  :url => "http://fragdenstaat.de"},
                              {:name => "tu derecho a saber",
                                  :country_name => "España",
                                  :country_iso_code => "ES",
                                  :url => "http://tuderechoasaber.es"},
                              {:name => "Queremos Saber",
                                  :country_name => "Brasil",
                                  :country_iso_code => "BR",
                                  :url => "http://queremossaber.org.br"},
                              {:name => "Ki Mit Tud",
                                  :country_name => "Magyarország",
                                  :country_iso_code => "HU",
                                  :url => "http://kimittud.atlatszo.hu/"},
                              {:name => "PravoDaSznam",
                                  :country_name => "Bosna i Hercegovina",
                                  :country_iso_code => "BA",
                                  :url => "http://www.pravodaznam.ba/"},
                              {:name => "Acceso Intelligente",
                                  :country_name => "Chile",
                                  :country_iso_code => "CL",
                                  :url => "http://accesointeligente.org"},
                              {:name => "Right To Know",
                                  :country_name => "Australia",
                                  :country_iso_code => "AU",
                                  :url => "http://www.righttoknow.org.au"},
                              {:name => "Informace pro Vsechny",
                                  :country_name => "Česká republika",
                                  :country_iso_code => "CZ",
                                  :url => "http://www.infoprovsechny.cz"}
                              ]
        return world_foi_websites
    end

    def self.by_code(code)
        result = self.world_foi_websites.find{|x| x[:country_iso_code].downcase == code.downcase}
        return result
    end
end