Class: GovKit::Configuration
- Inherits:
-
Object
- Object
- GovKit::Configuration
- Defined in:
- lib/gov_kit/configuration.rb
Instance Attribute Summary collapse
-
#bing_appid ⇒ Object
Returns the value of attribute bing_appid.
-
#bing_base_url ⇒ Object
Returns the value of attribute bing_base_url.
-
#ftm_apikey ⇒ Object
Returns the value of attribute ftm_apikey.
-
#ftm_base_url ⇒ Object
Returns the value of attribute ftm_base_url.
-
#google_blog_base_url ⇒ Object
Returns the value of attribute google_blog_base_url.
-
#google_news_base_url ⇒ Object
Returns the value of attribute google_news_base_url.
-
#opencongress_apikey ⇒ Object
Returns the value of attribute opencongress_apikey.
-
#opencongress_base_url ⇒ Object
Returns the value of attribute opencongress_base_url.
-
#openstates_apikey ⇒ Object
Returns the value of attribute openstates_apikey.
-
#openstates_base_url ⇒ Object
Returns the value of attribute openstates_base_url.
-
#sunlight_apikey ⇒ Object
Returns the value of attribute sunlight_apikey.
-
#technorati_apikey ⇒ Object
Returns the value of attribute technorati_apikey.
-
#technorati_base_url ⇒ Object
Returns the value of attribute technorati_base_url.
-
#transparency_data_base_url ⇒ Object
Returns the value of attribute transparency_data_base_url.
-
#transparency_data_categories_url ⇒ Object
Returns the value of attribute transparency_data_categories_url.
-
#votesmart_apikey ⇒ Object
Returns the value of attribute votesmart_apikey.
-
#votesmart_base_url ⇒ Object
Returns the value of attribute votesmart_base_url.
-
#wikipedia_base_url ⇒ Object
Returns the value of attribute wikipedia_base_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/gov_kit/configuration.rb', line 12 def initialize @sunlight_apikey = @openstates_apikey = @votesmart_apikey = @ftm_apikey = '' @openstates_base_url = 'openstates.sunlightlabs.com/api/v1/' @transparency_data_base_url = 'transparencydata.com/api/1.0/' @votesmart_base_url = 'api.votesmart.org/' @ftm_base_url = 'api.followthemoney.org/' @opencongress_base_url = 'www.opencongress.org/' @technorati_base_url = 'api.technorati.com' @bing_base_url = 'api.search.live.net' @google_blog_base_url = 'blogsearch.google.com' @google_news_base_url = 'news.google.com' @wikipedia_base_url = 'en.wikipedia.org' # Permant home for contribution category mappings @transparency_data_categories_url = 'http://assets.transparencydata.org.s3.amazonaws.com/docs/catcodes.csv' end |
Instance Attribute Details
#bing_appid ⇒ Object
Returns the value of attribute bing_appid.
10 11 12 |
# File 'lib/gov_kit/configuration.rb', line 10 def bing_appid @bing_appid end |
#bing_base_url ⇒ Object
Returns the value of attribute bing_base_url.
10 11 12 |
# File 'lib/gov_kit/configuration.rb', line 10 def bing_base_url @bing_base_url end |
#ftm_apikey ⇒ Object
Returns the value of attribute ftm_apikey.
5 6 7 |
# File 'lib/gov_kit/configuration.rb', line 5 def ftm_apikey @ftm_apikey end |
#ftm_base_url ⇒ Object
Returns the value of attribute ftm_base_url.
5 6 7 |
# File 'lib/gov_kit/configuration.rb', line 5 def ftm_base_url @ftm_base_url end |
#google_blog_base_url ⇒ Object
Returns the value of attribute google_blog_base_url.
8 9 10 |
# File 'lib/gov_kit/configuration.rb', line 8 def google_blog_base_url @google_blog_base_url end |
#google_news_base_url ⇒ Object
Returns the value of attribute google_news_base_url.
8 9 10 |
# File 'lib/gov_kit/configuration.rb', line 8 def google_news_base_url @google_news_base_url end |
#opencongress_apikey ⇒ Object
Returns the value of attribute opencongress_apikey.
6 7 8 |
# File 'lib/gov_kit/configuration.rb', line 6 def opencongress_apikey @opencongress_apikey end |
#opencongress_base_url ⇒ Object
Returns the value of attribute opencongress_base_url.
6 7 8 |
# File 'lib/gov_kit/configuration.rb', line 6 def opencongress_base_url @opencongress_base_url end |
#openstates_apikey ⇒ Object
Returns the value of attribute openstates_apikey.
5 6 7 |
# File 'lib/gov_kit/configuration.rb', line 5 def openstates_apikey @openstates_apikey end |
#openstates_base_url ⇒ Object
Returns the value of attribute openstates_base_url.
3 4 5 |
# File 'lib/gov_kit/configuration.rb', line 3 def openstates_base_url @openstates_base_url end |
#sunlight_apikey ⇒ Object
Returns the value of attribute sunlight_apikey.
3 4 5 |
# File 'lib/gov_kit/configuration.rb', line 3 def sunlight_apikey @sunlight_apikey end |
#technorati_apikey ⇒ Object
Returns the value of attribute technorati_apikey.
7 8 9 |
# File 'lib/gov_kit/configuration.rb', line 7 def technorati_apikey @technorati_apikey end |
#technorati_base_url ⇒ Object
Returns the value of attribute technorati_base_url.
7 8 9 |
# File 'lib/gov_kit/configuration.rb', line 7 def technorati_base_url @technorati_base_url end |
#transparency_data_base_url ⇒ Object
Returns the value of attribute transparency_data_base_url.
3 4 5 |
# File 'lib/gov_kit/configuration.rb', line 3 def transparency_data_base_url @transparency_data_base_url end |
#transparency_data_categories_url ⇒ Object
Returns the value of attribute transparency_data_categories_url.
3 4 5 |
# File 'lib/gov_kit/configuration.rb', line 3 def transparency_data_categories_url @transparency_data_categories_url end |
#votesmart_apikey ⇒ Object
Returns the value of attribute votesmart_apikey.
4 5 6 |
# File 'lib/gov_kit/configuration.rb', line 4 def votesmart_apikey @votesmart_apikey end |
#votesmart_base_url ⇒ Object
Returns the value of attribute votesmart_base_url.
4 5 6 |
# File 'lib/gov_kit/configuration.rb', line 4 def votesmart_base_url @votesmart_base_url end |
#wikipedia_base_url ⇒ Object
Returns the value of attribute wikipedia_base_url.
9 10 11 |
# File 'lib/gov_kit/configuration.rb', line 9 def wikipedia_base_url @wikipedia_base_url end |