class PointmdComments::Aggregators::Comments
Public Instance Methods
call(page)
click to toggle source
# File lib/pointmd_comments/aggregators/comments.rb, line 4 def call(page) parse_comments(page) end
Private Instance Methods
parse_comments(page)
click to toggle source
# File lib/pointmd_comments/aggregators/comments.rb, line 10 def parse_comments(page) comments = page.css('div#simpals-comments-list').children.first.children comments.map do |comment| comment.css('p').children.last.text rescue StandardError next end.compact end