Sha256: b20223422d267c9ad29828ad5c09d14c506170efe6b797328b9478795597bcfc

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 Bytes

Contents

require 'twitter'
class TwitterToken < ConsumerToken
  TWITTER_SETTINGS={:site=>"http://twitter.com"}
  def self.consumer
    @consumer||=OAuth::Consumer.new credentials[:key],credentials[:secret],TWITTER_SETTINGS
  end
  
  def client
    @client ||= Twitter::Client.new(:consumer_key => TwitterToken.consumer.key, :consumer_secret => TwitterToken.consumer.secret)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
insrc-oauth-plugin-0.4.0.pre6 lib/oauth/models/consumers/services/twitter_token.rb
insrc-oauth-plugin-0.4.0.pre5 lib/oauth/models/consumers/services/twitter_token.rb