Top Level Namespace
Instance Method Summary collapse
Instance Method Details
#call_tweet ⇒ Object
17 18 19 |
# File 'lib/twitter_scrape.rb', line 17 def call_tweet @zen_tweets[0] end |
#get_data(scrape_page) ⇒ Object
9 10 11 |
# File 'lib/twitter_scrape.rb', line 9 def get_data(scrape_page) @data = scrape_page.css('p.tweet-text').text end |
#split_data ⇒ Object
13 14 15 |
# File 'lib/twitter_scrape.rb', line 13 def split_data @zen_tweets = @data.split("#quotes") end |