Method: AdobeConnect::Group.find_by_name

Defined in:
lib/adobe_connect/group.rb

.find_by_name(name, service = AdobeConnect::Service.new) ⇒ Object

Public: Find the given group on the Connect server.

name - Group’s name on Connect server

Returns an AdobeConnect::Group or nil.



64
65
66
67
68
69
70
# File 'lib/adobe_connect/group.rb', line 64

def self.find_by_name(name, service = AdobeConnect::Service.new)
  response = service.principal_list(:filter_name => name)

  if principal = response.at_xpath('//principal')
    self.load_from_xml(principal)
  end
end