Sha256: dd00c5ce807bbc6a5fc00cdb100b8ce7d3de7cfce0159d63b400931440b960ac
Contents?: true
Size: 484 Bytes
Versions: 3
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true module Fushin module Posts class Sblo < Post def main_selector "div.WordSection1" end def main_cleanup_selectors %w(.posted) end def attachements @attachements ||= doc.css("div.text > a").map do |a| url = a.get("href") next unless url next unless url.include? "/sblo_files/" Models::Attachment.new url end.compact end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fushin-0.4.2 | lib/fushin/posts/sblo.rb |
fushin-0.4.1 | lib/fushin/posts/sblo.rb |
fushin-0.4.0 | lib/fushin/posts/sblo.rb |