Module: GovKit

Defined in:
lib/gov_kit.rb,
lib/gov_kit/railtie.rb,
lib/gov_kit/resource.rb,
lib/gov_kit/vote_smart.rb,
lib/gov_kit/open_states.rb,
lib/gov_kit/configuration.rb,
lib/gov_kit/follow_the_money.rb,
lib/gov_kit/transparency_data.rb,
lib/gov_kit/open_congress/bill.rb,
lib/gov_kit/search_engines/bing.rb,
lib/gov_kit/open_congress/person.rb,
lib/gov_kit/open_congress/blog_post.rb,
lib/gov_kit/open_congress/news_post.rb,
lib/gov_kit/open_congress/roll_call.rb,
lib/gov_kit/search_engines/wikipedia.rb,
lib/gov_kit/open_congress/person_stat.rb,
lib/gov_kit/search_engines/technorati.rb,
lib/gov_kit/search_engines/google_blog.rb,
lib/gov_kit/search_engines/google_news.rb,
lib/gov_kit/open_congress/voting_comparison.rb,
lib/gov_kit/open_congress/roll_call_comparison.rb

Defined Under Namespace

Modules: ActsAsNoteworthy, FollowTheMoney, OpenCongress, OpenStates, SearchEngines, TransparencyData, VoteSmart Classes: ClientError, Configuration, FollowTheMoneyResource, GovKitError, InvalidRequest, Mention, NotAuthorized, OpenStatesResource, Railtie, Resource, ResourceNotFound, ServerError, TransparencyDataResource, VoteSmartResource

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



41
42
43
# File 'lib/gov_kit/configuration.rb', line 41

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Configure GovKit in config/initializers/govkit.rb

Examples:

GovKit.configure do |config|
  config.sunlight_apikey = ''
end

Yields:



55
56
57
# File 'lib/gov_kit/configuration.rb', line 55

def self.configure
  yield(configuration)
end