Class: Zimbra::DomainService::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/zimbra/domain.rb

Class Method Summary collapse

Class Method Details

.count_accounts_response(response) ⇒ Object



51
52
53
54
55
56
57
58
# File 'lib/zimbra/domain.rb', line 51

def count_accounts_response(response)
  hash = {}
  (response/"//n2:cos").map do |node|
    cos_id = (node/'@id').to_s
    hash[cos_id] = node.to_s.to_i
  end
  hash
end