Method: MarkovTwitter::TweetReader#get_tweets

Defined in:
lib/markov_twitter/tweet_reader.rb

#get_tweets(username:) ⇒ Array<Hash>

Returns - the hashes will have :text and :id keys.

Parameters:

  • username (String)

    must exist om twitter or this will raise an error

Returns:

  • (Array<Hash>)
    • the hashes will have :text and :id keys



15
16
17
18
# File 'lib/markov_twitter/tweet_reader.rb', line 15

def get_tweets(username:)
  user = client.user(username)
  client.user_timeline(user)
end