Class: GovKit::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/gov_kit/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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.org/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 = 'api.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_appidObject

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_urlObject

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_apikeyObject

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_urlObject

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_urlObject

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_urlObject

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_apikeyObject

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_urlObject

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_apikeyObject

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_urlObject

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_apikeyObject

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_apikeyObject

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_urlObject

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_urlObject

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_urlObject

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_apikeyObject

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_urlObject

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_urlObject

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