Created
July 29, 2010 00:58
-
-
Save rafapolo/496907 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rafael Polo | |
class Tuitero | |
def self.diz(msg) | |
return if ENV['RAILS_ENV'] == 'development' # só diz em produção | |
httpauth = Twitter::HTTPAuth.new('baixo_gavea', '******') | |
client = Twitter::Base.new(httpauth) | |
client.update(msg) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tuitero.diz("Olá mundo!")