Class: JumpstartAuth
- Inherits:
-
Object
- Object
- JumpstartAuth
- Defined in:
- lib/jumpstart_auth.rb
Constant Summary collapse
- @@credentials =
{ :consumer_key => "mJ5otbhPGNoDCgCL7j5g", :consumer_secret => "M0XkT6GeBnjxdlWHcSGYX1JutMVS9D5ISlkqRfShg" }
Class Method Summary collapse
Class Method Details
.twitter ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/jumpstart_auth.rb', line 41 def self.twitter setup_oauth unless load_settings Twitter.configure do |config| config.consumer_key = @@credentials[:consumer_key] config.consumer_secret = @@credentials[:consumer_secret] config.oauth_token = @@credentials[:oauth_token] config.oauth_token_secret = @@credentials[:oauth_secret] end return client_class.new end |