Method: AdobeConnect::Group.load_from_xml
- Defined in:
- lib/adobe_connect/group.rb
.load_from_xml(g) ⇒ Object (private)
83 84 85 86 87 88 89 90 91 92 |
# File 'lib/adobe_connect/group.rb', line 83 def self.load_from_xml(g) desc = g.at_xpath('//description') desc = desc.children unless desc.nil? desc = desc.text unless desc.nil? self.new({ :name => g.at_xpath('//name').children.text, :description => desc, :id => g.attr('principal-id') }) end |