Class: Bently::Twitter

Inherits:
RailsRecipe show all
Defined in:
lib/bently/recipe/twitter.rb

Constant Summary

Constants inherited from RubyRecipe

RubyRecipe::GEMFILE

Instance Method Summary collapse

Methods inherited from RailsRecipe

#generate, #migrate

Methods inherited from RubyRecipe

#bundle, #gem, #gem_group

Methods inherited from Recipe

#append, breakdown, category, #code, #create, description, homepage, #insert, #modify, #operate, #operations, #prepend, #remove, #requirement, #run, #say, title, #todo, #usage, version, #warn

Constructor Details

#initializeTwitter

Returns a new instance of Twitter.



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/bently/recipe/twitter.rb', line 7

def initialize
  gem 'twitter'
  bundle
  todo 'Register your application with Twitter: https://dev.twitter.com/apps/new'
  todo 'Copy and paste in your OAuth data:'
  code %{Twitter.configure do |config|
  config.consumer_key = YOUR_CONSUMER_KEY
  config.consumer_secret = YOUR_CONSUMER_SECRET
  config.oauth_token = YOUR_OAUTH_TOKEN
  config.oauth_token_secret = YOUR_OAUTH_TOKEN_SECRET
end}
end