Skip to content

Instantly share code, notes, and snippets.

@rafapolo
Created July 29, 2010 00:58
Show Gist options
  • Save rafapolo/496907 to your computer and use it in GitHub Desktop.
Save rafapolo/496907 to your computer and use it in GitHub Desktop.
# 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
@rafapolo
Copy link
Author

Tuitero.diz("Olá mundo!")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment