Sha256: b684db8f3a9becbdd44330adb980db33e203f84c2cd574d1e5464a0ecdfe416f
Contents?: true
Size: 818 Bytes
Versions: 5
Compression:
Stored size: 818 Bytes
Contents
module Feedjira module Parser class OPMLOutline include SAXMachine include FeedUtilities attribute :type attribute :text attribute :xmlUrl, as: :xml_url do |s| URI(s) end attribute :isComment, as: :is_comment attribute :isBreakpoint, as: :is_breakpoint attribute :created do |s| Time.parse(s) end attribute :category attribute :description attribute :htmlUrl, as: :html_url do |s| URI(s) end attribute :language attribute :title attribute :version attribute :url do |s| URI(s) end def comment? !!is_comment && is_comment == 'true' end def breakpoint? !!is_breakpoint && is_breakpoint == 'true' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems