class Fushin::Posts::Shinobi
Public Instance Methods
attachements()
click to toggle source
# File lib/fushin/posts/shinobi.rb, line 14 def attachements @attachements ||= doc.css("#primary > div.inner > div > div:nth-child(3) > a").map do |a| url = a.get("href") next unless url Models::Attachment.new url end.compact end
main_cleanup_selectors()
click to toggle source
# File lib/fushin/posts/shinobi.rb, line 10 def main_cleanup_selectors %w(script) end
main_selector()
click to toggle source
# File lib/fushin/posts/shinobi.rb, line 6 def main_selector "#primary > div.inner > div > div:nth-child(3)" end