Class: ProveUru::ProfileList

Inherits:
Object
  • Object
show all
Defined in:
lib/prove_uru/profile_list.rb

Class Method Summary collapse

Class Method Details

.get_profile_listObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/prove_uru/profile_list.rb', line 2

def self.get_profile_list
  client = ProveUru.create_client
  
  response = client.request :prove, :get_profiles do
    soap.body = ProveUru.merge_prove_password_hash({})
  end
  
  list = Array.new
  
  response = response.to_hash
  response[:get_profiles_response][:get_profiles_result][:uru_profile5].each do |p|
    list << ::ProveUru::Profile.new(p)
  end

  list
end