Class: GData::Apps::Feed
- Inherits:
-
Array
- Object
- Array
- GData::Apps::Feed
- Defined in:
- lib/gdata/apps/provisioning.rb
Overview
UserFeed object : Array populated with Element_class objects (UserEntry, NicknameEntry, EmailListEntry or EmailListRecipientEntry)
Instance Method Summary collapse
-
#initialize(xml_feed, element_class) ⇒ Feed
constructor
UserFeed constructor.
Constructor Details
#initialize(xml_feed, element_class) ⇒ Feed
UserFeed constructor. Populates an array with Element_class objects. Each object is an xml <entry> parsed from the REXML::Element <feed>. Ex : user_feed = Feed.new(xml_feed, UserEntry)
nickname_feed = Feed.new(xml_feed, NicknameEntry)
388 389 390 391 392 |
# File 'lib/gdata/apps/provisioning.rb', line 388 def initialize(xml_feed, element_class) if xml_feed.respond_to? :elements xml_feed.elements.each("entry"){ |entry| self << element_class.new(entry) } end end |