Class: TwitterType::TwitterClient

Inherits:
Object
  • Object
show all
Defined in:
lib/twitterclient.rb

Direct Known Subclasses

TwitterClientWrapper

Instance Method Summary collapse

Instance Method Details

#gather_recent_tweets_for(screen_name) ⇒ Object

Raises:

  • (ArgumentError)


7
8
9
10
11
# File 'lib/twitterclient.rb', line 7

def gather_recent_tweets_for (screen_name)
  raise ArgumentError if screen_name.nil? or screen_name.strip.size == 0
  
  Twitter::Client.new.timeline_for(:user, :id => screen_name)
end