class Reply
Attributes
content[RW]
parent_tweet[RW]
reply_number[RW]
Public Class Methods
new(index, parent_tweet)
click to toggle source
# File lib/twiterator/reply.rb, line 4 def initialize(index, parent_tweet) @index = index @parent_tweet = parent_tweet end
Public Instance Methods
date()
click to toggle source
# File lib/twiterator/reply.rb, line 22 def date self.parent_tweet.doc.css('.stream-items .stream-item-header .time a')[@index].values[2].split(" - ")[1] end
show_five()
click to toggle source
# File lib/twiterator/reply.rb, line 26 def show_five puts "\n#{self.display_name.upcase}'S MOST RECENT TWEETS:\n" @counter = 0 until self.counter == 5 tweet_cycle end end
time()
click to toggle source
# File lib/twiterator/reply.rb, line 17 def time #binding.pry self.parent_tweet.doc.css('.stream-items .stream-item-header .time a')[@index].values[2].split(" - ")[0] end