Module: Trumptweets

Defined in:
lib/trumptweets.rb,
lib/trumptweets/version.rb

Overview

Main module for getting trump tweets

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.fake_newsObject

Get a random tweet of trump mentioning the phrase fake news



24
25
26
# File 'lib/trumptweets.rb', line 24

def self.fake_news()
	get_tweet('fake_news')
end

.hilaryObject

Get a random tweet of trump mentioning Hilary or Clinton



34
35
36
# File 'lib/trumptweets.rb', line 34

def self.hilary()
	get_tweet('hilary')
end

.magaObject

Get a random tweet of trump mentioning the term MAGA



39
40
41
# File 'lib/trumptweets.rb', line 39

def self.maga()
	get_tweet('maga')
end

.obamaObject

Get a random tweet of trump mentioning Obama



44
45
46
# File 'lib/trumptweets.rb', line 44

def self.obama()
	get_tweet('obama')
end

.russiaObject

Get a random tweet of trump mentioning Russia



29
30
31
# File 'lib/trumptweets.rb', line 29

def self.russia()
	get_tweet('russia')
end

.tweetObject

Gets a random trump tweet from his time of presidency



19
20
21
# File 'lib/trumptweets.rb', line 19

def self.tweet()
	get_tweet(@tweet_mapping.keys.sample)
end