how to get entry element with all attributes and values?

56 views
Skip to first unread message

j_l_

unread,
Apr 26, 2012, 12:35:14 PM4/26/12
to feedzirra
example:

<entry>
<title>Categories</title>
<id>23144545566</id>
<updated>2012-01-11T14:58:32Z</updated>
<api:category id="65" name="Games" value="1" records="2345" />
<api:category id="21" name="Videos" value="2" records="123" />
<api:category id="2" name="Books" value="B" records="23128" />
<api:category id="53" name="Laptops" value="34" records="843" />
...
</entry>
<entry>
<title>Products</title>
...
</entry>

I try this, but it not works properly.
Feedzirra::Feed.tap do |feed|
feed.add_common_feed_entry_element('categories',
as: :categories)
feed.add_common_feed_entry_elements('api:category',
as: :categories, value: :value)
end

Can I solve it by add_common_feed_entry_element(s) method ?
Reply all
Reply to author
Forward
0 new messages