Sha256: 8cb66015f9382a370f33a266175ac5b8f986008447ea60b506a7804d855f6f3d

Contents?: true

Size: 501 Bytes

Versions: 10

Compression:

Stored size: 501 Bytes

Contents

require 'twitter'

module T
  module Requestable
  private

    def client
      return @client if @client
      @rcfile.path = options['profile'] if options['profile']
      @client = Twitter::REST::Client.new do |config|
        config.consumer_key        = @rcfile.active_consumer_key
        config.consumer_secret     = @rcfile.active_consumer_secret
        config.access_token        = @rcfile.active_token
        config.access_token_secret = @rcfile.active_secret
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
t-3.1.0 lib/t/requestable.rb
t-3.0.0 lib/t/requestable.rb
t-2.10.0 lib/t/requestable.rb
t-2.9.0 lib/t/requestable.rb
t-2.8.0 lib/t/requestable.rb
t-2.7.0 lib/t/requestable.rb
t-2.6.0 lib/t/requestable.rb
t-2.5.0 lib/t/requestable.rb
t-2.4.0 lib/t/requestable.rb
t-2.3.0 lib/t/requestable.rb