Sha256: e715a938557f5ffc5b0e7c8cbb73d8a8ae3210703276710844e8abd17cf861f7

Contents?: true

Size: 351 Bytes

Versions: 1

Compression:

Stored size: 351 Bytes

Contents

module HentryConsumer
  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
hentry_consumer-0.1.0 lib/hentry_consumer/h_feed.rb