class Popularity::RedditResult
Public Class Methods
new(url, r)
click to toggle source
Calls superclass method
Popularity::Crawler::new
# File lib/popularity/networks/reddit_post.rb, line 45 def initialize(url, r) super(url) @url = url @response = r self end
Public Instance Methods
fetch()
click to toggle source
# File lib/popularity/networks/reddit_post.rb, line 65 def fetch false end
fetch_async()
click to toggle source
# File lib/popularity/networks/reddit_post.rb, line 69 def fetch_async false end
has_response?()
click to toggle source
# File lib/popularity/networks/reddit_post.rb, line 53 def has_response? true end
reddit_url()
click to toggle source
# File lib/popularity/networks/reddit_post.rb, line 57 def reddit_url @url end
valid?()
click to toggle source
# File lib/popularity/networks/reddit_post.rb, line 61 def valid? URI.parse(@url).host end