Class: FeedMe::ItemParser

Inherits:
AbstractParser show all
Defined in:
lib/feed_me/item_parser.rb

Direct Known Subclasses

Rss2ItemParser

Instance Attribute Summary collapse

Attributes inherited from AbstractParser

#format, #properties, #xml

Instance Method Summary collapse

Methods inherited from AbstractParser

build, #to_hash

Constructor Details

#initialize(xml, format, feed) ⇒ ItemParser

Returns a new instance of ItemParser.



9
10
11
12
# File 'lib/feed_me/item_parser.rb', line 9

def initialize(xml, format, feed)
  super(xml, format)
  self.feed = feed
end

Instance Attribute Details

#feedObject

Returns the value of attribute feed.



7
8
9
# File 'lib/feed_me/item_parser.rb', line 7

def feed
  @feed
end