Browse files

removed outdated list of attributes from parsers classes

  • Loading branch information...
1 parent 6a06ffc commit 3ef390e7fb86916f15d759249ba6b954f33345c0 @archiloque archiloque committed Jul 9, 2011
View
15 lib/feedzirra/parser/atom.rb
@@ -1,14 +1,7 @@
module Feedzirra
-
+
module Parser
- # == Summary
# Parser for dealing with Atom feeds.
- #
- # == Attributes
- # * title
- # * feed_url
- # * url
- # * entries
class Atom
include SAXMachine
include FeedUtilities
@@ -22,15 +15,15 @@ class Atom
def self.able_to_parse?(xml) #:nodoc:
/\<feed[^\>]+xmlns=[\"|\'](http:\/\/www\.w3\.org\/2005\/Atom|http:\/\/purl\.org\/atom\/ns\#)[\"|\'][^\>]*\>/ =~ xml
end
-
+
def url
@url || links.last
end
-
+
def feed_url
@feed_url ||= links.first
end
end
end
-
+
end
View
22 lib/feedzirra/parser/atom_entry.rb
@@ -1,20 +1,10 @@
module Feedzirra
-
+
module Parser
- # == Summary
# Parser for dealing with Atom feed entries.
- #
- # == Attributes
- # * title
- # * url
- # * author
- # * content
- # * summary
- # * published
- # * categories
- class AtomEntry
- include SAXMachine
- include FeedEntryUtilities
+ class AtomEntry
+ include SAXMachine
+ include FeedEntryUtilities
element :title
element :link, :as => :url, :value => :href, :with => {:type => "text/html", :rel => "alternate"}
element :name, :as => :author
@@ -28,12 +18,12 @@ class AtomEntry
element :modified, :as => :updated
elements :category, :as => :categories, :value => :term
elements :link, :as => :links, :value => :href
-
+
def url
@url ||= links.first
end
end
end
-
+
end
View
7 lib/feedzirra/parser/atom_feed_burner.rb
@@ -1,14 +1,7 @@
module Feedzirra
module Parser
- # == Summary
# Parser for dealing with Feedburner Atom feeds.
- #
- # == Attributes
- # * title
- # * feed_url
- # * url
- # * entries
class AtomFeedBurner
include SAXMachine
include FeedUtilities
View
10 lib/feedzirra/parser/atom_feed_burner_entry.rb
@@ -1,17 +1,7 @@
module Feedzirra
module Parser
- # == Summary
# Parser for dealing with Feedburner Atom feed entries.
- #
- # == Attributes
- # * title
- # * url
- # * author
- # * content
- # * summary
- # * published
- # * categories
class AtomFeedBurnerEntry
include SAXMachine
include FeedEntryUtilities
View
7 lib/feedzirra/parser/rss.rb
@@ -1,14 +1,7 @@
module Feedzirra
module Parser
- # == Summary
# Parser for dealing with RSS feeds.
- #
- # == Attributes
- # * title
- # * feed_url
- # * url
- # * entries
class RSS
include SAXMachine
include FeedUtilities
View
14 lib/feedzirra/parser/rss_entry.rb
@@ -1,17 +1,7 @@
module Feedzirra
-
+
module Parser
- # == Summary
# Parser for dealing with RDF feed entries.
- #
- # == Attributes
- # * title
- # * url
- # * author
- # * content
- # * summary
- # * published
- # * categories
class RSSEntry
include SAXMachine
include FeedEntryUtilities
@@ -38,5 +28,5 @@ class RSSEntry
end
end
-
+
end

0 comments on commit 3ef390e

Please sign in to comment.