Sha256: c2d7230684026055bf0139e42a89ba8d7483decf3f0a874ed62d334edb2ae67a

Contents?: true

Size: 344 Bytes

Versions: 1

Compression:

Stored size: 344 Bytes

Contents

module Microby
  class HFeed
    attr_accessor :entries
    def initialize(html)
      @entries = []
      parse_html(html)
    end
    
    def parse_html(html)
      doc = Nokogiri::HTML(open html)
      doc.css(".h-entry").each do |mf_entry|
        entry = HEntry.new(mf_entry)
        self.entries << entry
      end
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
microby-0.0.3 lib/microby/h_feed.rb