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
-
.fake_news ⇒ Object
Get a random tweet of trump mentioning the phrase fake news.
-
.hilary ⇒ Object
Get a random tweet of trump mentioning Hilary or Clinton.
-
.maga ⇒ Object
Get a random tweet of trump mentioning the term MAGA.
-
.obama ⇒ Object
Get a random tweet of trump mentioning Obama.
-
.russia ⇒ Object
Get a random tweet of trump mentioning Russia.
-
.tweet ⇒ Object
Gets a random trump tweet from his time of presidency.
Class Method Details
.fake_news ⇒ Object
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 |
.hilary ⇒ Object
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 |
.maga ⇒ Object
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 |
.obama ⇒ Object
Get a random tweet of trump mentioning Obama
44 45 46 |
# File 'lib/trumptweets.rb', line 44 def self.obama() get_tweet('obama') end |
.russia ⇒ Object
Get a random tweet of trump mentioning Russia
29 30 31 |
# File 'lib/trumptweets.rb', line 29 def self.russia() get_tweet('russia') end |
.tweet ⇒ Object
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 |