Class: GAppsProvisioning::Feed

Inherits:
Array
  • Object
show all
Defined in:
lib/gappsprovisioning/provisioningapi.rb

Overview

UserFeed object : Array populated with Element_class objects (UserEntry, NicknameEntry, EmailListEntry or EmailListRecipientEntry)

Instance Method Summary collapse

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)

729
730
731
# File 'lib/gappsprovisioning/provisioningapi.rb', line 729

def initialize(xml_feed, element_class)
	xml_feed.elements.each("entry"){ |entry| self << element_class.new(entry) }
end