Sha256: 5d8d4c5661649ad169895cf928b04fd7991240f981cff43dd0843204925ba0b4

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

require 'htmlentities'

module Feed2Mail
  class Item
    attr_reader :uri, :title, :description

    def initialize(entry)
      @uri          = entry[:guid] || entry[:link]

      coder = HTMLEntities.new

      @title        = coder.decode entry[:title]
      @description  = coder.decode entry[:description]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
feed2mail-0.0.1 lib/feed2mail/item.rb