lib/popularity/networks/reddit_share.rb in popularity-0.1.0 vs lib/popularity/networks/reddit_share.rb in popularity-0.1.1
- old
+ new
@@ -1,32 +1,8 @@
+
module Popularity
class RedditShare < Crawler
include Popularity::ContainerMethods
-
- class RedditResult < Popularity::RedditPost
- def initialize(url, r)
- super(url)
- @response = r
-
- self
- end
-
- def has_response?
- true
- end
-
- def valid?
- URI.parse(@url).host
- end
-
- def fetch
- false
- end
-
- def fetch_async
- false
- end
- end
def initialize(*args)
super(*args)
posts_json = response_json["data"]["children"]
posts_json.each do |child|
\ No newline at end of file